Skip to content

Commit

Permalink
Fix typo in profiles request logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Dec 27, 2023
1 parent a872eba commit 23d0e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/profiles/generate_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def list_requested_data(
config.profiles.scope.to_date,
sensor_location.to_datetime.date(),
(datetime.datetime.utcnow() -
datetime.timedelta(hours=12)).date(),
datetime.timedelta(hours=36)).date(),
)
if from_date <= to_date:
requested_data[l].update(
Expand Down
2 changes: 1 addition & 1 deletion src/profiles/std_site_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def list_requested_data(
from_date = std_site_config.from_date
to_date = min(
std_site_config.to_date,
(datetime.datetime.utcnow() - datetime.timedelta(hours=12)).date(),
(datetime.datetime.utcnow() - datetime.timedelta(hours=36)).date(),
)
if from_date > to_date:
return set()
Expand Down

0 comments on commit 23d0e74

Please sign in to comment.