fix: reassesed_codes定义挪到并发段引用之前——919行extend在937行定义之前→UnboundLocalError,price_monitor每次zones触发就崩(昨天并发重构引入,知微Kanban抓包)

This commit is contained in:
xxm
2026-08-25 11:38:02 +08:00
parent bc04a8aebc
commit 855c8631c2
+2 -1
View File
@@ -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: