mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Minor fix in IfcCSV where strings didn't get auto quoted.
This commit is contained in:
@@ -240,8 +240,7 @@ class IfcCsv:
|
|||||||
for index, format_query in formatting_indices.items():
|
for index, format_query in formatting_indices.items():
|
||||||
if row[index] == null:
|
if row[index] == null:
|
||||||
continue
|
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]))
|
row[index] = ifcopenshell.util.selector.format(format_query.replace("{{value}}", row[index]))
|
||||||
|
|
||||||
def sort_results(self, sort, attributes, include_global_id):
|
def sort_results(self, sort, attributes, include_global_id):
|
||||||
|
|||||||
Reference in New Issue
Block a user