From e867939e133f207c782d4efb33c4f80f4649eff9 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 27 七月 2023 11:10:14 +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 f229381..debb990 100644
--- a/third_data/kpl_block_util.py
+++ b/third_data/kpl_block_util.py
@@ -13,15 +13,16 @@
 
 # 鏄惁涓绘澘寮�1
 # limit_up_record_datas 浠婃棩鍘嗗彶娑ㄥ仠
-def is_shsz_open_limit_up(code, block, limit_up_record_datas, code_block_dict):
+def get_shsz_open_limit_up_codes(code, block, limit_up_record_datas, code_block_dict):
     # 鑾峰彇浠婃棩9锛�30鐨勬椂闂存埑
     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:
-                return True, f"{k[3]}寮�涓�"
-    return False, ""
+                limit_up_codes.add(k[3])
+    return limit_up_codes
 
 
 # 浠g爜鏄惁鏄悗鎺�
@@ -87,7 +88,7 @@
     return False, block_codes_infos[:topn]
 
 
-def is_record_top_block(code, block, limit_up_record_datas,yesterday_current_limit_up_codes, topn):
+def is_record_top_block(code, block, limit_up_record_datas, yesterday_current_limit_up_codes, topn):
     block_codes_infos = []
     limit_up_time = time.time()
     for k in limit_up_record_datas:

--
Gitblit v1.8.0