Skip to content
Snippets Groups Projects
Verified Commit 1dce85ef authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Small change.

parent 250098d1
No related branches found
No related tags found
2 merge requests!73MAINT: change wording of TableImporter argument and allow converters and...,!71MAINT: adapt to new default keyword RECORD in FIND queries
Pipeline #35505 passed
......@@ -260,7 +260,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(
"FIND {} WITH name={}".format(role, 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