fix importhub to ignore weird new items without slug

This commit is contained in:
Laura Klünder 2023-12-26 02:10:35 +01:00
parent c2e632611c
commit 933ea122b9

View file

@ -58,7 +58,7 @@ class Command(BaseCommand):
report.notify_reviewers()
def do_import(self, data):
items: list[HubImportItem] = [HubImportItem.model_validate(item) for item in data]
items: list[HubImportItem] = [HubImportItem.model_validate(item) for item in data if item["type"] == "assembly"]
items_by_id = {item.id: item for item in items}
spaces_for_level = {}