From 8ffb521f738254038d85bbade839b2e30456e525 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 04 十一月 2024 00:41:05 +0800
Subject: [PATCH] 扫入参考代码板块优化

---
 third_data/code_plate_key_manager.py |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py
index 6ae77f8..6a92858 100644
--- a/third_data/code_plate_key_manager.py
+++ b/third_data/code_plate_key_manager.py
@@ -293,12 +293,6 @@
     def get_today_limit_up_reason(cls, code):
         return cls.__today_total_limit_up_reason_dict.get(code)
 
-    # 浠婃棩娑ㄥ仠鍘熷洜鍙樺寲
-    def set_today_limit_up_reason_change(self, code, from_reason, to_reason):
-        RedisUtils.sadd(self.__get_redis(), f"kpl_limit_up_reason_his-{code}", from_reason)
-        RedisUtils.expire(self.__get_redis(), f"kpl_limit_up_reason_his-{code}", tool.get_expire())
-        self.__set_total_keys(code)
-
     # 璁剧疆浠g爜鐨勪粖鏃ユ定鍋滃師鍥�
     def __set_total_keys(self, code):
         keys = set()
@@ -335,6 +329,8 @@
                 if codes:
                     fresult[k] = codes
         return fresult
+
+
 
 
 # 瀹炴椂寮�鐩樺暒甯傚満鏁版嵁
@@ -1110,7 +1106,7 @@
 
 class RadicalBuyBlockManager:
     """
-    婵�杩涗拱鏉垮潡绠$悊
+    鎵叆涔版澘鍧楃鐞�
     """
     __TargetCodePlateKeyManager = TargetCodePlateKeyManager()
     # 涓婃鐨勬定鍋滀唬鐮�
@@ -1371,8 +1367,8 @@
             if RedicalBuyDataManager.can_buy(history_before_codes_info[0][0],
                                              DealAndDelegateWithBuyModeDataManager().get_deal_codes())[0]:
                 return False, f"寮�1鏁伴噺锛歿count}锛屽墠鎺掍唬鐮佸彲涔帮細{history_before_codes_info[0]}"
-            return True, f"寮�1鏁伴噺锛歿count}锛屽墠鎺掍唬鐮佷笉鍙拱锛歿history_before_codes_info[0]}"
-        return True, f"寮�1鏁伴噺锛歿count}锛屽巻鍙�-{history_index + 1} 瀹炴椂-{current_index + 1}"
+            return True, f"寮�1鏁伴噺锛歿count}锛屽墠鎺掍唬鐮佷笉鍙拱锛歿history_before_codes_info[0]}锛屽巻鍙插墠鎺�-{history_before_codes_info}"
+        return True, f"寮�1鏁伴噺锛歿count}锛屽巻鍙�-{history_index + 1} 瀹炴椂-{current_index + 1}锛� 鍓嶆帓浠g爜-{current_before_codes_info}"
 
     @classmethod
     def __is_radical_buy_with_block_up(cls, code, block, yesterday_limit_up_codes):

--
Gitblit v1.8.0