mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-09-20 02:31:14 +00:00
Ruff format
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user