fix(schedule): Use midnight as schedule start date
Change date_start from current time to today at midnight so the schedule fetch query properly covers the full day.
This commit is contained in:
+1
-1
@@ -334,7 +334,7 @@ def get_schedule(num_days: int) -> str:
|
||||
global userid
|
||||
assert session and userid
|
||||
now = datetime.datetime.now()
|
||||
date_start = now
|
||||
date_start = now.replace(hour=0, minute=0, second=0, microsecond=0)
|
||||
date_end = date_start + datetime.timedelta(days=num_days)
|
||||
r = session.post(
|
||||
"https://app.myice.hockey/inc/processclubplanning.php",
|
||||
|
||||
Reference in New Issue
Block a user