修复翻倍出场/翻倍提醒可能重复推微信:done状态停扫,提醒标记立即提交。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -138,6 +138,11 @@ def run_options_profit_alerts(
|
||||
f"UPDATE options_trades SET profit_alert_sent = 1 WHERE id IN ({','.join('?' * len(bucket['ids']))})",
|
||||
tuple(bucket["ids"]),
|
||||
)
|
||||
# 立即提交,避免后续目标/翻倍/同步异常回滚后每轮重推
|
||||
try:
|
||||
conn.commit()
|
||||
except Exception:
|
||||
pass
|
||||
sent += 1
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user