From c8bf2f970aac36f2869ea6be8a315a759030b800 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 30 八月 2023 14:54:25 +0800
Subject: [PATCH] 板块日志添加

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

diff --git a/third_data/code_plate_key_manager.py b/third_data/code_plate_key_manager.py
index 6ca3a88..5d4a496 100644
--- a/third_data/code_plate_key_manager.py
+++ b/third_data/code_plate_key_manager.py
@@ -445,6 +445,8 @@
                 else:
                     code_limit_up_reason_dict[d[3]] = d[2]
             return code_limit_up_reason_dict
+        if current_limit_up_datas is None:
+            current_limit_up_datas = []
 
         # 鑾峰彇鐩爣浠g爜鏉垮潡
         keys, k1, k11, k2, k3, k4 = cls.__TargetCodePlateKeyManager.get_plate_keys(code)
@@ -494,8 +496,7 @@
                                                                                  code_limit_up_reason_dict)
                 if pen_limit_up_codes:
                     # 涓绘澘寮�1
-                    if current_shsz_rank < len(pen_limit_up_codes) + 1 and record_shsz_rank < len(
-                            pen_limit_up_codes) + 1:
+                    if current_shsz_rank < len(pen_limit_up_codes) + 1 and record_shsz_rank < len(pen_limit_up_codes) + 1:
                         # 灞炰簬榫�1,榫�2
                         can_buy_blocks.append((block,
                                                f"{tool.get_now_time_str()} {block}锛歵op10娑ㄥ仠鏉垮潡锛屼富鏉垮紑1({pen_limit_up_codes}),灞炰簬涓绘澘鍓嶉緳{len(pen_limit_up_codes) + 1}(瀹炴椂韬綅-{current_shsz_rank}/{len(current_limit_up_datas)})"))

--
Gitblit v1.8.0