From 855c8631c230c45f97e6306b711157e51e70d83b Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 25 Aug 2026 11:38:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20reassesed=5Fcodes=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=8C=AA=E5=88=B0=E5=B9=B6=E5=8F=91=E6=AE=B5=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E2=80=94=E2=80=94919=E8=A1=8Cextend=E5=9C=A8?= =?UTF-8?q?937=E8=A1=8C=E5=AE=9A=E4=B9=89=E4=B9=8B=E5=89=8D=E2=86=92Unboun?= =?UTF-8?q?dLocalError,price=5Fmonitor=E6=AF=8F=E6=AC=A1zones=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=B0=B1=E5=B4=A9(=E6=98=A8=E5=A4=A9=E5=B9=B6?= =?UTF-8?q?=E5=8F=91=E9=87=8D=E6=9E=84=E5=BC=95=E5=85=A5,=E7=9F=A5?= =?UTF-8?q?=E5=BE=AEKanban=E6=8A=93=E5=8C=85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/price_monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: