Schedule change, add warning triangle

This commit is contained in:
Stijn De Clercq 2021-09-27 19:11:11 +02:00
parent 2a8500e870
commit 287e2fd233
2 changed files with 17 additions and 3 deletions

View file

@ -82,11 +82,11 @@ class Timeslot:
# This class was canceled
if self.canceled:
return f"{self.course} van {timeFromInt(self.start_time)} gaat vandaag **niet** door."
return f"⚠️ {self.course} van {timeFromInt(self.start_time)} gaat vandaag **niet** door."
# Something else is wrong
return f"{self.course} gaat vandaag door van **{timeFromInt(self.start_time)}** tot " \
f"**{timeFromInt(self.end_time)}** {self._get_location_str(online_prefix='op')}"
return f"⚠️ {self.course} gaat vandaag door van **{timeFromInt(self.start_time)}** tot " \
f"**{timeFromInt(self.end_time)}** **{self._get_location_str(online_prefix='op')}**"
@staticmethod
def from_slot_dict(slot_dict: Dict, course_dict: Dict, current_week: int):