From 96ede6bdcb28d8d2a8d50146564cbbc67bacf23b Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 13 三月 2024 16:21:46 +0800 Subject: [PATCH] 板上买的条件调整 --- log_module/log_export.py | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/log_module/log_export.py b/log_module/log_export.py index 8dfa4da..b42ce5b 100644 --- a/log_module/log_export.py +++ b/log_module/log_export.py @@ -402,6 +402,18 @@ return fdatas +def load_kpl_open_limit_up(): + path = f"{constant.get_path_prefix()}/logs/gp/kpl/kpl_open_limit_up.{tool.get_now_date_str()}.log" + fdatas = [] + lines = __load_file_content(path) + for line in lines: + if line.find("鐐告澘") > 0: + time_str = __get_log_time(line) + data = line[line.find("锛�") + 1:] + codes = eval(data) + fdatas.append((time_str, codes)) + return fdatas + # 鍔犺浇鍗庨懌鏈湴涔板叆璁㈠崟鍙� def load_huaxin_local_buy_no(): path = f"{constant.get_path_prefix()}/logs/huaxin_local/l2/l2_buy_no.{tool.get_now_date_str()}.log" @@ -488,7 +500,7 @@ if __name__ == '__main__': - fdatas = get_l2_cant_buy_reasons("002731") + fdatas = load_kpl_open_limit_up() print(len(fdatas)) # print(get_h_cancel_compute_info("603912")) -- Gitblit v1.8.0