Skip to content

Commit 47c8d14

Browse files
change clip now time to on the hour (#290)
1 parent 4cd5d7a commit 47c8d14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nowcasting_datamodel/save/update.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def add_forecast_last_7_days_and_remove_old_data(
382382

383383
# remove old data
384384
now_minus_7_days = datetime.now(tz=timezone.utc) - timedelta(days=7)
385+
now_minus_7_days = now_minus_7_days.replace(minute=0, second=0, microsecond=0)
385386

386387
# remove any duplicate forecast values
387388
if remove_non_distinct:

0 commit comments

Comments
 (0)