fix: promote VALUES占位符减1(strategy_name列已加,值数对齐)

This commit is contained in:
xxm
2026-08-17 17:47:52 +08:00
parent 9af213c4f8
commit b3484f65d7
+1 -1
View File
@@ -184,7 +184,7 @@ def main():
rr_ratio, stock_category, strategy_name, created_at, updated_at, rr_ratio, stock_category, strategy_name, created_at, updated_at,
sector_context, quality_check) sector_context, quality_check)
VALUES (?,?,?,?,?,?,?,?,?,'自选策略','scan', VALUES (?,?,?,?,?,?,?,?,?,'自选策略','scan',
'active',?,'关注',?,?,?,?,'', 'pending') 'active',?,'关注',?,?,?,'', 'pending')
""", (code, name, 0, el, eh, sl, tp, timing_signal, action, _rr, source_strategy, now, now)) """, (code, name, 0, el, eh, sl, tp, timing_signal, action, _rr, source_strategy, now, now))
newly_added = cur.rowcount > 0 newly_added = cur.rowcount > 0