Ruff format

This commit is contained in:
Chris
2024-10-10 15:00:32 +02:00
committed by Andreas
parent 5503b8876c
commit e65eb6b6dd
19 changed files with 101 additions and 286 deletions

View File

@@ -26,9 +26,7 @@ def get_start_enddate(prediction_hours=48, startdate=None):
# Parameter
############
if startdate is None:
date = (datetime.now().date() + timedelta(hours=prediction_hours)).strftime(
"%Y-%m-%d"
)
date = (datetime.now().date() + timedelta(hours=prediction_hours)).strftime("%Y-%m-%d")
date_now = datetime.now().strftime("%Y-%m-%d")
else:
date = (startdate + timedelta(hours=prediction_hours)).strftime("%Y-%m-%d")