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
|
global userid
|
||||||
assert session and userid
|
assert session and userid
|
||||||
now = datetime.datetime.now()
|
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)
|
date_end = date_start + datetime.timedelta(days=num_days)
|
||||||
r = session.post(
|
r = session.post(
|
||||||
"https://app.myice.hockey/inc/processclubplanning.php",
|
"https://app.myice.hockey/inc/processclubplanning.php",
|
||||||
|
|||||||
Reference in New Issue
Block a user