Skip to content

Commit

Permalink
fixed another export error
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed May 6, 2024
1 parent 47af521 commit 32855c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/processors/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def export_for_search(data: dict, path: str) -> None:
building_parents_index = len(entry["parents"])
if entry["type"] in {"room", "virtual_room"}:
for i, parent in enumerate(entry["parents"]):
if parent == "root":
continue
if data[parent]["type"] in {"building", "joined_building"}:
building_parents_index = i
break
Expand Down

0 comments on commit 32855c8

Please sign in to comment.