From 5d8d33929860838ff8b57555193664e463e0d85e Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 17 Jun 2024 19:32:11 +0200 Subject: [PATCH] fixed another bug in the data scraper --- data/external/scrapers/roomfinder.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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