From 32855c8699212711a79ff9aa7988265ff462555e Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 6 May 2024 15:01:33 +0200 Subject: [PATCH] fixed another export error --- data/processors/export.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/processors/export.py b/data/processors/export.py index 360d43b8d..5ab591674 100644 --- a/data/processors/export.py +++ b/data/processors/export.py @@ -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