Skip to content

Commit

Permalink
Fix broken room URLs #1
Browse files Browse the repository at this point in the history
So for some rooms the URL in TISS changed, which besides bad practise
as URLs should be permanent also broke some assumptions we had in
our room generating script.

However, the script is now more robust but changing urls will always
require us to rerun the script.
  • Loading branch information
flofriday committed Oct 5, 2023
1 parent 792fe9a commit e6c21e3
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 138 deletions.
5 changes: 3 additions & 2 deletions app/resources/generate_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def main():
cells = row.find_elements(By.CSS_SELECTOR, "td")
room = [cell.text for cell in cells]
room.append(
"https://tiss.tuwien.ac.at/events/roomSchedule.xhtml?roomCode="
+ room[7]
cells[0]
.find_elements(By.CSS_SELECTOR, "a")[0]
.get_attribute("href")
)
data.append(room)

Expand Down
Loading

0 comments on commit e6c21e3

Please sign in to comment.