Administrator
2024-09-30 7d3c00d278c7f45a9c5e02a9410fb69d968de438
bug修复
4个文件已修改
22 ■■■■■ 已修改文件
api/outside_api_command_callback.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/code_plate_key_manager.py 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/kpl_api.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/kpl_data_manager.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/outside_api_command_callback.py
@@ -1230,7 +1230,7 @@
                source_origin_dict = copy.deepcopy(CodeThirdBlocksManager().get_source_blocks_origin(code))
                if not source_origin_dict:
                    source_origin_dict = {}
                kpl_blocks = KPLCodeJXBlockManager().get_jx_blocks_radical(code)
                kpl_blocks = RadicalBuyBlockManager.get_code_kpl_blocks(code)
                if kpl_blocks is None:
                    kpl_blocks = set()
                if not kpl_blocks:
third_data/code_plate_key_manager.py
@@ -1422,12 +1422,7 @@
        return True, ""
    @classmethod
    def get_code_blocks(cls, code):
        """
        获取目标代码的板块
        @param code:
        @return: 过滤后的板块,过滤前的板块
        """
    def get_code_kpl_blocks(cls, code):
        blocks = KPLCodeJXBlockManager().get_jx_blocks_radical(code)
        if blocks is None:
            blocks = set()
@@ -1435,6 +1430,16 @@
        keys = TargetCodePlateKeyManager().get_plate_keys(code, contains_today=False)
        if keys and keys[0]:
            blocks |= set(keys[0])
        return blocks
    @classmethod
    def get_code_blocks(cls, code):
        """
        获取目标代码的板块
        @param code:
        @return: 过滤后的板块,过滤前的板块
        """
        blocks = cls.get_code_kpl_blocks(code)
        match_blocks, info = CodeThirdBlocksManager().get_intersection_blocks_info(code, blocks)
        match_blocks -= constant.KPL_INVALID_BLOCKS
        fblocks = match_blocks & RealTimeKplMarketData.get_top_market_jingxuan_blocks()
third_data/kpl_api.py
@@ -269,7 +269,6 @@
if __name__ == "__main__":
    print()
    print(getLimitUpInfoNew())
    # __getConceptBK("300564")
third_data/kpl_data_manager.py
@@ -485,7 +485,7 @@
        log.close_print()
        while True:
            try:
                if (tool.is_trade_time() and int(tool.get_now_time_str().replace(':', '')) > int("092530")):
                if (tool.is_trade_time() and int(tool.get_now_time_str().replace(':', '')) > int("092530")) or True:
                    results = kpl_api.getLimitUpInfoNew()
                    result = json.loads(results)
                    start_time = time.time()