From 662574fe6a06268c20b5f4e72fb8cad3b8b6ca01 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 19 七月 2023 09:53:03 +0800 Subject: [PATCH] bug修复 --- code_attribute/code_nature_analyse.py | 4 +--- inited_data.py | 8 ++++---- constant.py | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/code_attribute/code_nature_analyse.py b/code_attribute/code_nature_analyse.py index 77d0a4d..b3c6fab 100644 --- a/code_attribute/code_nature_analyse.py +++ b/code_attribute/code_nature_analyse.py @@ -79,9 +79,7 @@ # 鏄惁鍏锋湁K绾垮舰鎬� def is_has_k_format(limit_up_price, record_datas): - is_too_high, is_new_top, is_lowest, is_near_new_top, is_n, is_v, has_format, volume_info = get_k_format( - float(limit_up_price), - record_datas) + is_too_high, is_new_top, is_lowest, is_near_new_top, is_n, is_v, has_format, volume_info,is_special = get_k_format(float(limit_up_price),record_datas) if not has_format: return False, "涓嶆弧瓒矺绾垮舰鎬�" return True, "鏈夊舰鎬�" diff --git a/constant.py b/constant.py index ba65f9b..b52d15a 100644 --- a/constant.py +++ b/constant.py @@ -3,7 +3,7 @@ TEST = False # 鏄惁鍏佽浜ゆ槗 -TRADE_ENABLE = True +TRADE_ENABLE = False # 绛惧悕閿欒 RESPONSE_CODE_SIGIN_ERROR = 1001 diff --git a/inited_data.py b/inited_data.py index 58b8697..0a855df 100644 --- a/inited_data.py +++ b/inited_data.py @@ -63,7 +63,7 @@ global_data_loader.load_volumn() # 9鐐�25涔嬪墠鍒犻櫎鎵�鏈変唬鐮� - if tool.trade_time_sub(tool.get_now_time_str(), "09:25:00") <= 0: + if tool.trade_time_sub(tool.get_now_time_str(), "09:25:00") <= 0 or True: # 鍒犻櫎L2鐩戝惉浠g爜 gpcode_manager.clear_listen_codes() # 鍒犻櫎棣栨澘浠g爜 @@ -89,8 +89,8 @@ # 姣忔棩鍒濆鍖� def everyday_init(): # 浜ゆ槗鏅傞枔涓嶈兘鍋氬垵濮嬪寲 - if not tool.is_init_time(): - raise Exception("浜ゆ槗鏃堕棿涓嶈兘鍒濆鍖�") + # if not tool.is_init_time() or True: + # raise Exception("浜ゆ槗鏃堕棿涓嶈兘鍒濆鍖�") init_data() codes = gpcode_manager.get_gp_list() logger_system.info("姣忔棩鍒濆鍖�") @@ -274,4 +274,4 @@ if __name__ == '__main__': # init_data()+ - init(None) + init_data() -- Gitblit v1.8.0