fix: promote VALUES占位符减1(strategy_name列已加,值数对齐)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user