From 59f0960726b5461525637516ada14f5b357f2b17 Mon Sep 17 00:00:00 2001 From: sophon Date: Tue, 12 Aug 2025 11:20:41 +0800 Subject: [PATCH] modify scripts --- src/static/daily_snap_em.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/static/daily_snap_em.py b/src/static/daily_snap_em.py index edb1ddb..3897dfe 100644 --- a/src/static/daily_snap_em.py +++ b/src/static/daily_snap_em.py @@ -245,6 +245,9 @@ def main(list, args_debug, notify): if not trading_date: logging.error(f"无法获取 {market_id} 市场的交易日期") continue + if trading_date != current_date and not debug: + logging.info(f"非交易日,不处理 {market_id} 市场,当前交易日期: {trading_date}, 当前日期: {current_date}") + continue # 获取快照数据 snap_data = fetch_snap_all(market_id, trading_date)