fix importhub to ignore weird new items without slug
This commit is contained in:
parent
c2e632611c
commit
933ea122b9
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Command(BaseCommand):
|
||||||
report.notify_reviewers()
|
report.notify_reviewers()
|
||||||
|
|
||||||
def do_import(self, data):
|
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}
|
items_by_id = {item.id: item for item in items}
|
||||||
|
|
||||||
spaces_for_level = {}
|
spaces_for_level = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue