fix: refresh latest regime trading session
Deploy / lint (push) Successful in 10s
Deploy / test (push) Successful in 1m14s
Deploy / deploy (push) Successful in 39s

This commit is contained in:
2026-07-15 09:13:42 +02:00
parent 1d5b1489be
commit 81c6f5fe2f
5 changed files with 66 additions and 2 deletions
+1 -1
View File
@@ -772,7 +772,7 @@ async def update_regime_monitor(db: AsyncSession, rebuild_sessions: int = REBUIL
written, latest_result = await _upsert_snapshot(
db,
computed,
rewrite_existing_v2=rebuilding or snapshot_date == date.today(),
rewrite_existing_v2=rebuilding or snapshot_date == latest_date,
)
snapshots_written += int(written)
await db.commit()