From 75304450cd47c427ade3ad40a7556fc8328a3f29 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 31 七月 2024 18:39:59 +0800 Subject: [PATCH] 板块轮动统计/G撤比例修改 --- code_attribute/code_data_util.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code_attribute/code_data_util.py b/code_attribute/code_data_util.py index 7abbee5..2725f06 100644 --- a/code_attribute/code_data_util.py +++ b/code_attribute/code_data_util.py @@ -19,8 +19,6 @@ # 浠g爜瀵瑰簲鐨勪环鏍兼槸鍚︽纭� def is_same_code_with_price(code, price): - if code == '600066': - print('杩涘叆璋冭瘯') # 鏄ㄦ棩鏀剁洏浠� price_close = gpcode_manager.CodePrePriceManager.get_price_pre_cache(code) max_price = tool.to_price(decimal.Decimal(str(price_close)) * decimal.Decimal(tool.get_limit_up_rate(code))) @@ -84,7 +82,9 @@ @return: """ fresults = cls.__mysql.select_one(f"select count(code) from kpl_zylt_volume where update_time >= '{tool.get_now_date_str()}'") - return fresults[0] + if fresults: + return fresults[0] + return 0 -- Gitblit v1.8.0