From a4f00fbbd588fcf2edd581cd4612b30045916dce Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 11 四月 2025 14:38:17 +0800
Subject: [PATCH] 没有获取到板块的代码取当日涨停原因

---
 third_data/kpl_data_constant.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/third_data/kpl_data_constant.py b/third_data/kpl_data_constant.py
index 2974055..635b227 100644
--- a/third_data/kpl_data_constant.py
+++ b/third_data/kpl_data_constant.py
@@ -240,10 +240,14 @@
         @return:
         """
         blocks = set(self.__radical_buy_reasons_dict.get(code, set()))
+        if not blocks:
+            b = LimitUpDataConstant.get_limit_up_reason_with_history(code)
+            if b:
+                blocks.add(b)
         # 鑾峰彇浠g爜鐨勬澘鍧�
         # 鑾峰彇浠g爜鐨勬柊棰樻潗
-        new_blocks = get_new_blocks(code)
-        return blocks | new_blocks
+        _new_blocks = get_new_blocks(code)
+        return blocks | _new_blocks
 
 
 class TodayLimitUpReasonChangeManager:

--
Gitblit v1.8.0