From 9461bf21291a11e82ae4713eb68a74f119e48437 Mon Sep 17 00:00:00 2001 From: "Sigma Dimensions (Yass)" <79010126+myoualid@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:30:33 +0100 Subject: [PATCH] fix f2097c0 --- src/ifc5d/ifc5d/csv2ifc.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ifc5d/ifc5d/csv2ifc.py b/src/ifc5d/ifc5d/csv2ifc.py index 11e14365cd..7f2241c67b 100644 --- a/src/ifc5d/ifc5d/csv2ifc.py +++ b/src/ifc5d/ifc5d/csv2ifc.py @@ -69,10 +69,16 @@ class Csv2Ifc: identification = row[self.headers["Identification"]] if "Identification" in self.headers else None quantity = row[self.headers["Quantity"]] unit = row[self.headers["Unit"]] - assignments = { - "PropertyName": row[self.headers["Property"]], - "Query": row[self.headers["Query"]], - } + if not self.is_schedule_of_rates: + assignments = { + "PropertyName": row[self.headers["Property"]], + "Query": row[self.headers["Query"]], + } + else: + assignments = { + "PropertyName": None, + "Query": None, + } if self.has_categories: cost_values = { k: locale.atof(row[v])