diff --git a/deploy/profile-scripts/price_monitor.py b/deploy/profile-scripts/price_monitor.py index dc7fd2c9..5eb44b09 100644 --- a/deploy/profile-scripts/price_monitor.py +++ b/deploy/profile-scripts/price_monitor.py @@ -765,6 +765,7 @@ def run_once(round_label=""): state = load_state() outputs = [] _reassess_pending = [] # 2026-08-24 并发重评队列表(循环内只快判收集,循环后统一并发) + reassesed_codes = [] # 2026-08-25 挪到并发段引用之前(919行extend引用在937行定义之前→UnboundLocalError,price_monitor每次触发就崩) state_updated = False # 时间冷却:同股同区间30分钟内不重复推 _push_cooldown = {} @@ -934,7 +935,7 @@ def run_once(round_label=""): save_state(state) return - reassesed_codes = [] + # 先做急跌检测(仅持仓,自选股不推送暴跌告警) holdings_codes = set() for d in active: