From 570c1e4d1b11b48d5aaa400ee05b612997708ee2 Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Mon, 1 Nov 2021 00:28:02 +0100 Subject: [PATCH] Change current date time to 2 am to always be ahead of the base day --- data/schedule.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/schedule.py b/data/schedule.py index 481098c..0844bcb 100644 --- a/data/schedule.py +++ b/data/schedule.py @@ -143,6 +143,8 @@ class Schedule: weekday_str: str = field(init=False) def __post_init__(self): + self.day = self.day.replace(hour=2, minute=0, second=0, microsecond=0) + self.schedule_dict: Dict = self.load_schedule_file() self.start_date = fromArray(self.schedule_dict["semester_start"]) self.end_date = fromArray(self.schedule_dict["semester_end"])