Skip to content

Commit

Permalink
change clip now time to on the hour
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jul 10, 2024
1 parent 97c6962 commit a247b88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nowcasting_datamodel/save/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def add_forecast_last_7_days_and_remove_old_data(

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

# remove any duplicate forecast values
if remove_non_distinct:
Expand Down

0 comments on commit a247b88

Please sign in to comment.