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 Aug 23, 2023
1 parent a120e57 commit ecb2da1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ def get_truth_values_for_a_specific_gsp_from_database(
:return: list of gsp yields
"""

if start_datetime is None \
or start_datetime >= datetime.now(tz=timezone.utc) \
or datetime.now(tz=timezone.utc) - start_datetime > timedelta(days=3):
if (
start_datetime is None
or start_datetime >= datetime.now(tz=timezone.utc)
or datetime.now(tz=timezone.utc) - start_datetime > timedelta(days=3)
):
start_datetime = get_start_datetime()

return get_gsp_yield(
Expand Down

0 comments on commit ecb2da1

Please sign in to comment.