Skip to content

Commit

Permalink
reduce satellite cache to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed May 15, 2024
1 parent f2adaa2 commit 4bf2148
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 4bf2148

Please sign in to comment.