From b190e8942bb9d174a652999faf0e570701d28e2d Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 04 十二月 2024 14:33:52 +0800 Subject: [PATCH] 订阅修改 --- huaxin_client/l1_client.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/huaxin_client/l1_client.py b/huaxin_client/l1_client.py index 0f2eb91..f6728f9 100644 --- a/huaxin_client/l1_client.py +++ b/huaxin_client/l1_client.py @@ -287,11 +287,10 @@ list_ = [level1_data_dict[k] for k in level1_data_dict] flist = [] now_time_int = int(tool.get_now_time_str().replace(":", "")) - threshold_rate = constant.L1_MIN_RATE_PRE if now_time_int < int( - "094000") else constant.L1_MIN_RATE + threshold_rate = constant.L1_MIN_RATE for d in list_: if d[2] >= threshold_rate or d[0] in fixed_codes: - # 娑ㄥ箙灏忎簬5%鐨勯渶瑕佸垹闄� + # 娑ㄥ箙灏忎簬3%鐨勯渶瑕佸垹闄� flist.append(d) flist.sort(key=lambda x: x[2], reverse=True) # 灏嗗浐瀹氫唬鐮佺殑鎺掑湪鏈�鍓� @@ -310,7 +309,6 @@ if len(datas) > 0: logger_l2_codes_subscript.info("寮�濮�#鍗庨懌L1涓婁紶浠g爜锛氭暟閲�-{}", len(datas)) __upload_codes_info(queue_l1_w_strategy_r, datas) - except Exception as e: logging.exception(e) logger_debug.exception(e) -- Gitblit v1.8.0