Skip to content

Commit

Permalink
fixed an invalid tumonline calendar link
Browse files Browse the repository at this point in the history
Resolves #1163
  • Loading branch information
CommanderStorm committed May 7, 2024
1 parent 93e6a80 commit 61d9aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/processors/sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def extract_tumonline_props(data: dict[str, dict[str, Any]]) -> None:
"""Extract some of the TUMonline data and provides it as `prop`."""
for entry in data.values():
if entry.get("tumonline_data", {}).get("calendar", None):
calendar_url = f"https://campus.tum.de/tumonline/{entry['tumonline_data']['calendar']}"
calendar_resource_id = entry["tumonline_data"]["calendar"]
calendar_url = f"https://campus.tum.de/tumonline/tvKalender.wSicht?cOrg=0&cRes={calendar_resource_id}"
entry["props"]["calendar_url"] = calendar_url
if entry.get("tumonline_data", {}).get("operator", None):
entry["props"]["operator"] = {
Expand Down

0 comments on commit 61d9aa6

Please sign in to comment.