mirror of https://github.com/stijndcl/didier
Schedule change, add warning triangle
parent
2a8500e870
commit
287e2fd233
|
@ -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):
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue