Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2023
1 parent 2a0bc0a commit dc6c840
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,13 @@ def get_latest_forecast_values_for_a_specific_gsp_from_database(
)

else:

if creation_utc_limit is not None and creation_utc_limit < datetime.now(tz=timezone.utc) - timedelta(days=7):
if creation_utc_limit is not None and creation_utc_limit < datetime.now(
tz=timezone.utc
) - timedelta(days=7):
model = ForecastValueSQL
elif start_datetime_utc is not None and start_datetime_utc < datetime.now(tz=timezone.utc) - timedelta(days=7):
elif start_datetime_utc is not None and start_datetime_utc < datetime.now(
tz=timezone.utc
) - timedelta(days=7):
model = ForecastValueSQL
else:
model = ForecastValueSevenDaysSQL
Expand Down

0 comments on commit dc6c840

Please sign in to comment.