From 2cd01c4ff2fd4ba417a775d39c0c89a1a12590ff Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 18 四月 2025 13:55:19 +0800 Subject: [PATCH] bug修复 --- trade/buy_radical/new_block_processor.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/trade/buy_radical/new_block_processor.py b/trade/buy_radical/new_block_processor.py index 1a3d03b..327ace2 100644 --- a/trade/buy_radical/new_block_processor.py +++ b/trade/buy_radical/new_block_processor.py @@ -118,7 +118,7 @@ if zyltgb and zyltgb < 10e8: return False k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) - if zyltgb >= 50e8: + if zyltgb and zyltgb >= 50e8: # 50浜夸互涓婄殑涓嶉渶瑕佸舰鎬佺獊鐮� return True if not k_format or not k_format[1][0]: @@ -220,3 +220,7 @@ # 鏈夋柊棰樻潗 return not __is_can_add_new_block(code) return True + + +if __name__ == "__main__": + BeforeBlocksComputer() -- Gitblit v1.8.0