From 6ebf3a8a4a1b48547633de879a26014b77feec46 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 28 十二月 2023 16:25:40 +0800
Subject: [PATCH] 输出api修改/市场行情设置

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

diff --git a/third_data/kpl_block_util.py b/third_data/kpl_block_util.py
index d5f3af7..3972d15 100644
--- a/third_data/kpl_block_util.py
+++ b/third_data/kpl_block_util.py
@@ -168,8 +168,9 @@
 
 # 鑾峰彇褰撴棩瀹炴椂韬綅
 # before_blocks_dict鏍煎紡浣峽"浠g爜":set("鏉垮潡")}
-def get_code_current_rank(code, block, current_limit_up_datas, code_limit_up_reason_dict,
-                          yesterday_current_limit_up_codes, exclude_codes, open_limit_up_count, shsz=False, limit_up_time = time.time()):
+def get_code_current_rank(code, block, current_limit_up_datas, code_limit_up_reasons_dict,
+                          yesterday_current_limit_up_codes, exclude_codes, open_limit_up_count, shsz=False,
+                          limit_up_time=time.time()):
     block_codes_infos = []
     for k in current_limit_up_datas:
         if k[0] == code:
@@ -180,7 +181,7 @@
         # 鍓旈櫎楂樹綅鏉�
         if k[0] in yesterday_current_limit_up_codes:
             continue
-        if code_limit_up_reason_dict.get(k[0]) == block:
+        if code_limit_up_reasons_dict.get(k[0]) and block in code_limit_up_reasons_dict.get(k[0]):
             if k[0] != code:
                 # 浠g爜.娑ㄥ仠鏃堕棿
                 block_codes_infos.append((k[0], int(k[2])))

--
Gitblit v1.8.0