Skip to content
Snippets Groups Projects
Commit 671121fd authored by florian's avatar florian
Browse files

FIX: Add quotes for external query in model parser

parent ac2535c8
No related branches found
No related tags found
1 merge request!73MAINT: change wording of TableImporter argument and allow converters and...
......@@ -278,7 +278,7 @@ class Parser(object):
for role in ("Property", "RecordType", "Record", "File"):
if db.execute_query("COUNT {} {}".format(role, name)) > 0:
self.model[name] = db.execute_query(
f"FIND {role} WITH name={name}", unique=True)
f"FIND {role} WITH name=\"{name}\"", unique=True)
break
else:
raise Exception("Did not find {}".format(name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment