Minor fix in IfcCSV where strings didn't get auto quoted.

This commit is contained in:
Dion Moult
2023-09-12 17:48:11 +10:00
parent b243e04fd2
commit 02801b32a6
+1 -2
View File
@@ -240,8 +240,7 @@ class IfcCsv:
for index, format_query in formatting_indices.items():
if row[index] == null:
continue
if not isinstance(row[index], str):
row[index] = '"' + str(row[index]).replace('"', '\\"') + '"'
row[index] = '"' + str(row[index]).replace('"', '\\"') + '"'
row[index] = ifcopenshell.util.selector.format(format_query.replace("{{value}}", row[index]))
def sort_results(self, sort, attributes, include_global_id):