From 287b1fe7ef529c65b63596e1a217fc36f952dd1f Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 01 十二月 2023 17:53:02 +0800
Subject: [PATCH] bug修复

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

diff --git a/third_data/kpl_block_util.py b/third_data/kpl_block_util.py
index 5d83433..5c29965 100644
--- a/third_data/kpl_block_util.py
+++ b/third_data/kpl_block_util.py
@@ -18,10 +18,11 @@
     time_str = datetime.datetime.now().strftime("%Y-%m-%d") + " 09:30:00"
     timestamp = time.mktime(time.strptime(time_str, '%Y-%m-%d %H:%M:%S'))
     limit_up_codes = set()
-    for k in limit_up_record_datas:
-        if code_block_dict.get(k[3]) == block:
-            if int(k[5]) < timestamp:
-                limit_up_codes.add(k[3])
+    if limit_up_record_datas:
+        for k in limit_up_record_datas:
+            if code_block_dict.get(k[3]) == block:
+                if int(k[5]) < timestamp:
+                    limit_up_codes.add(k[3])
     return limit_up_codes
 
 

--
Gitblit v1.8.0