From 21c96ed504f93f16ce6f8a3ccf164a87c9edd9c0 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 30 一月 2024 15:45:23 +0800 Subject: [PATCH] 增加调试日志 --- third_data/kpl_block_util.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/third_data/kpl_block_util.py b/third_data/kpl_block_util.py index 5c29965..3972d15 100644 --- a/third_data/kpl_block_util.py +++ b/third_data/kpl_block_util.py @@ -168,10 +168,10 @@ # 鑾峰彇褰撴棩瀹炴椂韬綅 # before_blocks_dict鏍煎紡浣峽"浠g爜":set("鏉垮潡")} -def get_code_current_rank(code, block, current_limit_up_datas, code_limit_up_reason_dict, - yesterday_current_limit_up_codes, exclude_codes, open_limit_up_count, shsz=False): +def get_code_current_rank(code, block, current_limit_up_datas, code_limit_up_reasons_dict, + yesterday_current_limit_up_codes, exclude_codes, open_limit_up_count, shsz=False, + limit_up_time=time.time()): block_codes_infos = [] - limit_up_time = time.time() for k in current_limit_up_datas: if k[0] == code: # 鑾峰彇褰撳墠浠g爜娑ㄥ仠鏃堕棿 @@ -181,7 +181,7 @@ # 鍓旈櫎楂樹綅鏉� if k[0] in yesterday_current_limit_up_codes: continue - if code_limit_up_reason_dict.get(k[0]) == block: + if code_limit_up_reasons_dict.get(k[0]) and block in code_limit_up_reasons_dict.get(k[0]): if k[0] != code: # 浠g爜.娑ㄥ仠鏃堕棿 block_codes_infos.append((k[0], int(k[2]))) -- Gitblit v1.8.0