1

Exclut les minifigs des réutilisations de têtes

This commit is contained in:
2025-12-03 23:04:49 +01:00
parent 996e4cb9ff
commit 89eb0a92d7
2 changed files with 2 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 795 KiB

After

Width:  |  Height:  |  Size: 828 KiB

View File

@@ -31,6 +31,8 @@ def build_head_presence(
parts_by_inventory = index_inventory_parts_by_inventory(inventory_parts_path) parts_by_inventory = index_inventory_parts_by_inventory(inventory_parts_path)
presence: Dict[str, Set[str]] = {} presence: Dict[str, Set[str]] = {}
for set_num, inventory in inventories.items(): for set_num, inventory in inventories.items():
if set_num.startswith("fig-"):
continue
parts = parts_by_inventory.get(inventory["id"], []) parts = parts_by_inventory.get(inventory["id"], [])
for part_row in parts: for part_row in parts:
if part_row["part_num"] not in head_parts: if part_row["part_num"] not in head_parts: