From 318e033a0109070b824840518d1d73ce605284dc Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Wed, 25 Oct 2023 11:34:45 +0200
Subject: [PATCH] FIX: FIND RECORDTYPE with name='{prop.datatype}'",
 unique=True

---
 src/caosadvancedtools/json_schema_exporter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caosadvancedtools/json_schema_exporter.py b/src/caosadvancedtools/json_schema_exporter.py
index 3ad8214d..49c4a44a 100644
--- a/src/caosadvancedtools/json_schema_exporter.py
+++ b/src/caosadvancedtools/json_schema_exporter.py
@@ -113,7 +113,7 @@ def _make_prop_from_prop(prop: db.Property, additional_properties: bool,
             raise NotImplementedError("Files have not been implemented yet.")
         else:
             values = _retrieve_enum_values(f"RECORD '{prop.datatype}'")
-            rt = db.execute_query(f"FIND RECORDTYPE '{prop.datatype}'", unique=True)
+            rt = db.execute_query(f"FIND RECORDTYPE with name='{prop.datatype}'", unique=True)
             subschema = _treat_recordtype(rt, additional_properties,
                                           name_and_description_in_properties,
                                           additional_options_for_text_props,
-- 
GitLab