Skip to content

Commit

Permalink
Merge pull request #155 from openclimatefix/reduce-sat-cache
Browse files Browse the repository at this point in the history
reduce satellite cache to 5 minutes
  • Loading branch information
peterdudfield authored May 15, 2024
2 parents f2adaa2 + 4bf2148 commit e507203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/satellite_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_data(zarr_file):
downloaded_datetime = datetime.fromtimestamp(downloaded_datetime)
print(downloaded_datetime)

if downloaded_datetime < datetime.now() - timedelta(hours=1):
if downloaded_datetime < datetime.now() - timedelta(minutes=5):
print("Satellite file is more than 1 hour old")
download = True

Expand Down

0 comments on commit e507203

Please sign in to comment.