diff --git a/src/database.py b/src/database.py index 086e9ee6..50461912 100644 --- a/src/database.py +++ b/src/database.py @@ -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(