diff --git a/data/external/scrapers/roomfinder.py b/data/external/scrapers/roomfinder.py index 013ac9254..69e179c0e 100644 --- a/data/external/scrapers/roomfinder.py +++ b/data/external/scrapers/roomfinder.py @@ -83,9 +83,6 @@ class SearchResult(TypedDict): def _sanitise_room(room: dict) -> dict: for _map in room["maps"]: _map[1] = f"rf{_map[1]}" - # TODO: Remove if MyTUM does fix this.. TUM changed names in denazification initative - _map[3] = _map[3].replace("Bestelmeyer Nord", "Zentralgebäude 7") - _map[3] = _map[3].replace("Bestelmeyer Süd", "Zentralgebäude 2") if default_map := room["default_map"]: default_map[1] = f"rf{default_map[1]}" room["lat"], room["lon"] = _utm_to_latlon( @@ -99,8 +96,8 @@ def _sanitise_room(room: dict) -> dict: room["r_alias"] = room["r_alias"].replace("Gustav-Niemann-", "") room["r_alias"] = room["r_alias"].replace("EINGANGSHALLE FOYER BESTELMEYER", "") for _map in room["maps"]: - _map[3] = _map[3].replace("Bestelmeyer Nord", "Zentralgebäude 7") - _map[3] = _map[3].replace("Bestelmeyer Süd", "Zentralgebäude 2") + _map[2] = _map[2].replace("Bestelmeyer Nord", "Zentralgebäude 7") + _map[2] = _map[2].replace("Bestelmeyer Süd", "Zentralgebäude 2") return room