Schedule change, add warning triangle

pull/96/head
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 # This class was canceled
if self.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 # Something else is wrong
return f"{self.course} gaat vandaag door van **{timeFromInt(self.start_time)}** tot " \ 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')}" f"**{timeFromInt(self.end_time)}** **{self._get_location_str(online_prefix='op')}**"
@staticmethod @staticmethod
def from_slot_dict(slot_dict: Dict, course_dict: Dict, current_week: int): def from_slot_dict(slot_dict: Dict, course_dict: Dict, current_week: int):

View File

@ -35,6 +35,15 @@
} }
}, },
{ {
"weeks": {
"1": {
"location": {
"campus": "Sterre",
"building": "S9",
"room": "A2"
}
}
},
"location": { "location": {
"campus": "Sterre", "campus": "Sterre",
"building": "S9", "building": "S9",
@ -114,6 +123,11 @@
} }
}, },
{ {
"weeks": {
"1": {
"canceled": true
}
},
"location": { "location": {
"campus": "Ardoyen", "campus": "Ardoyen",
"building": "iGent 125", "building": "iGent 125",