From 6b846941aa0326bc899e4e6a4883fb9f30c927ef Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 20:25:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sync=5Fstrategy=5Fdef=20bindings?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E5=8C=B9=E9=85=8D(updated=5Fat=E5=AD=97?= =?UTF-8?q?=E9=9D=A2=E9=87=8F=E8=AF=AF=E5=8D=A0=E4=BD=8D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/mofin_db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy/profile-scripts/mofin_db.py b/deploy/profile-scripts/mofin_db.py index 9b6b8187..7e417e70 100644 --- a/deploy/profile-scripts/mofin_db.py +++ b/deploy/profile-scripts/mofin_db.py @@ -2423,9 +2423,7 @@ def sync_strategy_def(conn, d: dict): changed = True print(f" [SYNC_DEF] {name} 参数变更 → needs_review=1, version bump") if sets: - sets.append("updated_at=datetime('now','localtime')") - params.append(name) - conn.execute(f"UPDATE strategy_defs SET {', '.join(sets)} WHERE strategy_name=?", params + [name]) + conn.execute(f"UPDATE strategy_defs SET {', '.join(sets)}, updated_at=datetime('now','localtime') WHERE strategy_name=?", params + [name]) if not changed: print(f" [SYNC_DEF] {name} 定义一致,无需更新") else: