mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Schedule change, add warning triangle
This commit is contained in:
parent
2a8500e870
commit
287e2fd233
2 changed files with 17 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue