From 0e921bc8d68e830f15bb049dfb84b22bc05db788 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 15 八月 2024 09:49:50 +0800 Subject: [PATCH] bug修复 --- 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