修复翻倍出场/翻倍提醒可能重复推微信:done状态停扫,提醒标记立即提交。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 18:04:40 +08:00
parent 440778e9e6
commit 36724a902a
2 changed files with 52 additions and 10 deletions
+5
View File
@@ -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