From 228c40c970996f673ffb0ec7e2b0121b3bcb4a7f Mon Sep 17 00:00:00 2001 From: hmo Date: Wed, 29 Jul 2026 03:33:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20price=5Fmonitor=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E8=BF=BD=E8=B8=AAconn=E6=9C=AA=E5=AE=9A=E4=B9=89=E2=80=94?= =?UTF-8?q?=E2=80=94=E6=AD=A2=E7=9B=88=E6=AD=A2=E6=8D=9F=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=8C=81=E7=BB=AD=E6=8A=A5=E9=94=99=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E6=81=A2=E5=A4=8DSL/TP=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E9=93=BE=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/price_monitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/price_monitor.py b/deploy/profile-scripts/price_monitor.py index e72ec2c3..760ba2cc 100644 --- a/deploy/profile-scripts/price_monitor.py +++ b/deploy/profile-scripts/price_monitor.py @@ -776,7 +776,9 @@ def run_once(round_label=""): # ── 策略追踪评估(2026-07-27 老爸:检查推荐是否触发止盈/止损)── try: import mofin_db - tracked = mofin_db.check_strategy_outcomes(conn) + _conn = mofin_db.get_conn() + tracked = mofin_db.check_strategy_outcomes(_conn) + _conn.close() if tracked: print(f" [TRACK] {tracked}条推荐触发止盈/止损", flush=True) except Exception as e: