From 5b3dcb7a81fd2be7696dafd066c6609db203d446 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 26 七月 2023 10:27:22 +0800 Subject: [PATCH] bug修复 --- third_data/code_plate_key_manager.py | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py index b5074c2..344f1bc 100644 --- a/third_data/code_plate_key_manager.py +++ b/third_data/code_plate_key_manager.py @@ -366,7 +366,7 @@ # yesterday_current_limit_up_codes 锛� 鏄ㄦ棩娑ㄥ仠浠g爜 # before_blocks_dict锛氬巻鍙叉定鍋滃師鍥� @classmethod - def get_can_buy_block(cls, code, current_limit_up_datas, limit_up_record_datas,yesterday_current_limit_up_codes, + def get_can_buy_block(cls, code, current_limit_up_datas, limit_up_record_datas, yesterday_current_limit_up_codes, before_blocks_dict): # 鍔犺浇娑ㄥ仠浠g爜鐨勭洰鏍囨澘鍧� def load_code_block(): @@ -410,12 +410,13 @@ load_code_block() msg_list = [] for block in keys: - is_top_8_record, top_8_record = kpl_block_util.is_record_top_block(code, block, limit_up_record_datas, yesterday_current_limit_up_codes,8) + is_top_8_record, top_8_record = kpl_block_util.is_record_top_block(code, block, limit_up_record_datas, + yesterday_current_limit_up_codes, 20) is_top_4_current, top_4_current = kpl_block_util.is_current_top_block(code, block, current_limit_up_datas, - yesterday_current_limit_up_codes, 4) + yesterday_current_limit_up_codes, 10) is_top_4 = is_top_8_record and is_top_4_current - msg_list.append(f"\n瀹炴椂top4: {top_4_current}(娑ㄥ仠鏁伴噺锛歿len(current_limit_up_datas)})") - msg_list.append(f"鍘嗗彶top8: {top_8_record}") + msg_list.append(f"\n瀹炴椂top10: {top_4_current}(娑ㄥ仠鏁伴噺锛歿len(current_limit_up_datas)})") + msg_list.append(f"鍘嗗彶top20: {top_8_record}") # 鑾峰彇涓绘澘瀹炴椂韬綅 current_shsz_rank = kpl_block_util.get_code_current_rank(code, block, current_limit_up_datas, @@ -462,12 +463,14 @@ # 鏄惁鍙互涓嬪崟 # 杩斿洖锛氭槸鍚﹀彲浠ヤ笅鍗�,娑堟伅,鏉垮潡绫诲瀷 @classmethod - def can_buy(cls, code, current_limit_up_datas, limit_up_record_datas, yesterday_current_limit_up_codes,before_blocks_dict): + def can_buy(cls, code, current_limit_up_datas, limit_up_record_datas, yesterday_current_limit_up_codes, + before_blocks_dict): if constant.TEST: return True, "", cls.BLOCK_TYPE_NONE block, block_msg = cls.get_can_buy_block(code, current_limit_up_datas, - limit_up_record_datas,yesterday_current_limit_up_codes, before_blocks_dict) + limit_up_record_datas, yesterday_current_limit_up_codes, + before_blocks_dict) if block is None: return False, block_msg -- Gitblit v1.8.0