Improve formatting

pull/131/head
stijndcl 2022-09-18 01:18:35 +02:00
parent 13f7d03bbb
commit 0262d68fc9
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ class ScheduleSlot:
"""Fix some properties to display more nicely"""
# Re-format the location data
room, building, campus = re.search(r"(.*)\. Gebouw (.*)\. Campus (.*)\. ", self.location).groups()
room = room.replace("PC / laptoplokaal ", "PC-lokaal")
self.location = f"{campus} {building} {room}"
self._hash = hash(f"{self.course.course_id} {str(self.start_time)}")