Change current date time to 2 am to always be ahead of the base day

pull/100/head
Stijn De Clercq 2021-11-01 00:28:02 +01:00
parent 96cf11dcaf
commit 570c1e4d1b
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ class Schedule:
weekday_str: str = field(init=False) weekday_str: str = field(init=False)
def __post_init__(self): 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.schedule_dict: Dict = self.load_schedule_file()
self.start_date = fromArray(self.schedule_dict["semester_start"]) self.start_date = fromArray(self.schedule_dict["semester_start"])
self.end_date = fromArray(self.schedule_dict["semester_end"]) self.end_date = fromArray(self.schedule_dict["semester_end"])