fix: reassesed_codes定义挪到并发段引用之前——919行extend在937行定义之前→UnboundLocalError,price_monitor每次zones触发就崩(昨天并发重构引入,知微Kanban抓包)
This commit is contained in:
@@ -765,6 +765,7 @@ def run_once(round_label=""):
|
|||||||
state = load_state()
|
state = load_state()
|
||||||
outputs = []
|
outputs = []
|
||||||
_reassess_pending = [] # 2026-08-24 并发重评队列表(循环内只快判收集,循环后统一并发)
|
_reassess_pending = [] # 2026-08-24 并发重评队列表(循环内只快判收集,循环后统一并发)
|
||||||
|
reassesed_codes = [] # 2026-08-25 挪到并发段引用之前(919行extend引用在937行定义之前→UnboundLocalError,price_monitor每次触发就崩)
|
||||||
state_updated = False
|
state_updated = False
|
||||||
# 时间冷却:同股同区间30分钟内不重复推
|
# 时间冷却:同股同区间30分钟内不重复推
|
||||||
_push_cooldown = {}
|
_push_cooldown = {}
|
||||||
@@ -934,7 +935,7 @@ def run_once(round_label=""):
|
|||||||
save_state(state)
|
save_state(state)
|
||||||
return
|
return
|
||||||
|
|
||||||
reassesed_codes = []
|
|
||||||
# 先做急跌检测(仅持仓,自选股不推送暴跌告警)
|
# 先做急跌检测(仅持仓,自选股不推送暴跌告警)
|
||||||
holdings_codes = set()
|
holdings_codes = set()
|
||||||
for d in active:
|
for d in active:
|
||||||
|
|||||||
Reference in New Issue
Block a user