Skip to content

Commit

Permalink
Fixed a syntax error in the tumonline scaping run
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Apr 26, 2024
1 parent d256e52 commit 42e5b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/external/scrapers/tumonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def scrape_rooms() -> None:

logging.info("Scraping the rooms of tumonline")
room_index = {}
for building in tqdm(buildings, desc="Downloading the roomlist per building", unit="building")):
for building in tqdm(buildings, desc="Downloading the roomlist per building", unit="building"):
b_rooms = _retrieve_roomlist(
f_type="building",
f_name="pGebaeude",
Expand All @@ -128,7 +128,7 @@ def scrape_rooms() -> None:
usage_ids = list(range(1, 301)) # Observed: usage ids go up to 223, the limit below is for safety
for usage_id in tqdm(usage_ids, desc="Extend the rooms by their usage", unit="usage"):
if len(rooms) >= len(room_index):
break;
break
u_rooms = _retrieve_roomlist(f_type="usage", f_name="pVerwendung", f_value=usage_id, area_id=0)
for room in u_rooms:
roomcode = room["roomcode"]
Expand Down

0 comments on commit 42e5b52

Please sign in to comment.