len(get_inverse) -> get_total_inverses

This commit is contained in:
Andrej730
2025-02-24 11:34:47 +05:00
parent 6eda4e389c
commit 5eb9cb2ee4
17 changed files with 26 additions and 26 deletions
@@ -43,7 +43,7 @@ def remove_cost_item_quantity(
ifcopenshell.api.cost.remove_cost_item(model,
cost_item=item, physical_quantity=quantity)
"""
if len(file.get_inverse(physical_quantity)) == 1:
if file.get_total_inverses(physical_quantity) == 1:
file.remove(physical_quantity)
return
quantities = list(cost_item.CostQuantities or [])