From 12ed2a63a601854075886b6673bf03d1b4de75c8 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 01 十一月 2023 14:23:03 +0800
Subject: [PATCH] L撤H撤数据外部接口添加/涨幅过高代码记录

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

diff --git a/third_data/kpl_block_util.py b/third_data/kpl_block_util.py
index 53bfc80..2bb6b1c 100644
--- a/third_data/kpl_block_util.py
+++ b/third_data/kpl_block_util.py
@@ -155,7 +155,7 @@
 # 鑾峰彇褰撴棩瀹炴椂韬綅
 # 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, shsz=False):
+                          yesterday_current_limit_up_codes, exclude_codes, shsz=False):
     block_codes_infos = []
     limit_up_time = time.time()
     for k in current_limit_up_datas:
@@ -168,7 +168,7 @@
         if k[0] in yesterday_current_limit_up_codes:
             continue
         if code_limit_up_reason_dict.get(k[0]) == block:
-            if k[0] != code:
+            if k[0] != code and k[0] not in exclude_codes:
                 # 浠g爜.娑ㄥ仠鏃堕棿
                 block_codes_infos.append((k[0], int(k[2])))
     block_codes_infos.append((code, limit_up_time))

--
Gitblit v1.8.0