From e9680308bd91bb112c29f03a1316a0fc49e1917a Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 09 九月 2024 14:58:35 +0800 Subject: [PATCH] 一个板块扫入之后不能再次扫入 --- third_data/kpl_data_constant.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/third_data/kpl_data_constant.py b/third_data/kpl_data_constant.py index 3c15aa3..d430f8d 100644 --- a/third_data/kpl_data_constant.py +++ b/third_data/kpl_data_constant.py @@ -42,6 +42,13 @@ return cls.__history_code_blocks_dict.get(code) @classmethod + def get_limit_up_reason_with_history(cls, code): + d = cls.__history_code_data_dict.get(code) + if d: + return d[2] + return None + + @classmethod def get_first_limit_up_time(cls, code): if code in cls.__history_code_data_dict: return int(cls.__history_code_data_dict[code][5]) -- Gitblit v1.8.0