From 43c7f7d84e0f908710632493bc625082542df7da Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 25 Aug 2026 12:27:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20reconcile=20SIGNAL=5FJSON=E6=AE=B5re?= =?UTF-8?q?=E6=9C=AA=E5=AF=BC=E5=85=A5(=E6=A8=A1=E5=9D=97=E7=BA=A7?= =?UTF-8?q?=E6=97=A0re=E2=86=92=E5=87=BD=E6=95=B0=E5=86=85=E5=B1=80?= =?UTF-8?q?=E9=83=A8=E5=AF=BC=E5=85=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/mofin_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/mofin_db.py b/deploy/profile-scripts/mofin_db.py index b18d565f..606f610b 100644 --- a/deploy/profile-scripts/mofin_db.py +++ b/deploy/profile-scripts/mofin_db.py @@ -1203,7 +1203,8 @@ def reconcile_signal_from_analysis(conn, code: str) -> str: fa, old_sig = row[0] or "", row[1] or "" verdict = "" # ── 2026-08-25 机器可读结论优先(SIGNAL_JSON 行存在则直接用,散文匹配降级为兜底)── - _mj = re.search(r'^SIGNAL_JSON:\s*(\{.*\})\s*$', fa, re.M) + import re as _re3 # 函数内局部导入(模块级无 re) + _mj = _re3.search(r'^SIGNAL_JSON:\s*(\{.*\})\s*$', fa, _re3.M) if _mj: try: import json as _js2