From 523e51c7756e060161f2fab0aa47422f0ff8e0c0 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 1 May 2024 18:26:53 +0500 Subject: [PATCH] use json serialization for #4599 changed my mind about 5410f14aa, probably better to use `json.dumps` to keep it consistent with how we serialize other attributes --- src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py b/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py index c1940ef5df..e51baa7345 100644 --- a/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py +++ b/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py @@ -451,7 +451,7 @@ class Patcher: if prop_name == "id": continue if isinstance(value, list): - value = repr(value) + value = json.dumps(value) pset_rows.append([element.id(), pset_name, prop_name, value]) if self.should_get_geometry: