mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-15 11:35:47 +02:00
Improve formatting
This commit is contained in:
parent
13f7d03bbb
commit
0262d68fc9
1 changed files with 1 additions and 0 deletions
|
|
@ -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)}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue