fix: refresh latest regime trading session
This commit is contained in:
1 parent
1d5b1489be
commit
81c6f5fe2f
5 files changed
+66
-2
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user