From 799cf473164a472b4b7129c95da02389228c1204 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Sat, 31 Aug 2024 12:58:53 +0500 Subject: [PATCH] Fix error removing a cost schedule (after 7a44f9e) #5264 It wasn't really leaving orphaned data and interrupting the process of the ifc object deletion but it was leading to confusing errors --- src/bonsai/bonsai/core/cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/core/cost.py b/src/bonsai/bonsai/core/cost.py index 30240792a1..90c0e6c6e6 100644 --- a/src/bonsai/bonsai/core/cost.py +++ b/src/bonsai/bonsai/core/cost.py @@ -41,8 +41,8 @@ def disable_editing_cost_schedule(cost: tool.Cost) -> None: def remove_cost_schedule(ifc: tool.Ifc, cost: tool.Cost, cost_schedule: ifcopenshell.entity_instance) -> None: - ifc.run("cost.remove_cost_schedule", cost_schedule=cost_schedule) cost.remove_stored_schedule_columns(cost_schedule) + ifc.run("cost.remove_cost_schedule", cost_schedule=cost_schedule) def enable_editing_cost_schedule_attributes(cost: tool.Cost, cost_schedule: ifcopenshell.entity_instance) -> None: