Skip to content

Commit

Permalink
fixed props.tumonline_id not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed May 6, 2024
1 parent f4fcf71 commit 172b405
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions data/processors/tumonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def merge_tumonline_rooms(data: dict[str, dict[str, Any]]) -> None:
"name": f"{room_code} ({room.alt_name})",
"parents": data[b_id]["parents"] + [b_id],
"tumonline_data": {
"tumonline_id": room.tumonline_id,
"roomcode": room_code,
"arch_name": room.arch_name,
"alt_name": room.alt_name,
Expand Down Expand Up @@ -151,9 +152,6 @@ def merge_tumonline_rooms(data: dict[str, dict[str, Any]]) -> None:
logging.error(f"Unknown usage for room '{room['roomcode']}': Id '{room['usage']}'")
continue

if "extended" in room:
r_data["tumonline_data"]["extended"] = room.extended

# TUMonline data does not overwrite the existing data when merged
recursively_merge(data, {r_data["id"]: r_data}, overwrite=False)

Expand Down

0 comments on commit 172b405

Please sign in to comment.