Skip to content

Commit

Permalink
Fixed data export mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed May 6, 2024
1 parent d1ab748 commit 47af521
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 @@ -53,6 +53,8 @@ def export_for_search(data: dict, path: str) -> None:
campus_name = None
if entry["type"] not in {"campus", "site"}:
for parent in entry["parents"]:
if parent == "root":
continue
if data[parent]["type"] in {"campus", "site"}:
campus = data[parent]
campus_name = campus.get("short_name", campus["name"])
Expand Down

0 comments on commit 47af521

Please sign in to comment.