Administrator
2024-06-26 ad943b7942f33b28e0e8702ca50482dfe0e6b529
日志添加
2个文件已修改
11 ■■■■ 已修改文件
third_data/kpl_data_manager.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/output_data_util.py 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/kpl_data_manager.py
@@ -174,11 +174,7 @@
    @classmethod
    def get_current_codes_by_block(cls, block):
        try:
            return cls.__current_reason_codes_dict.get(block)
        except Exception as e:
            logger_debug.info(f"{cls.__current_reason_codes_dict}")
            return set()
        return cls.__current_reason_codes_dict.get(block)
    @classmethod
    def get_current_reason_codes_dict(cls):
utils/output_data_util.py
@@ -13,8 +13,12 @@
    # 获取板块
    fresults = {}
    blocks = kpl_data_manager.KPLCodeJXBlockManager().get_jx_blocks_cache(code)
    if blocks:
        blocks = blocks[0]
    if not blocks:
        blocks = kpl_data_manager.KPLCodeJXBlockManager().get_jx_blocks_cache(code, True)
        if blocks:
            blocks = blocks[0]
    if blocks is None:
        blocks = []
    current_blocks = kpl_data_manager.KPLLimitUpDataRecordManager.get_current_blocks(code)
@@ -59,7 +63,6 @@
                               "openLimitUpCount": len(temp_records) - current_codes_count, "rank": rank[0] + 1})
        except Exception as e:
            logger_debug.exception(e)
            logger_debug.error(f"blocks:{blocks}")
    # 统计板块的
    fresults["blockInfos"] = blockInfos