Skip to content
Snippets Groups Projects
Commit 980d0fa8 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-parents' into 'dev'

MAINT: use id of entities

See merge request caosdb/caosdb-advanced-user-tools!59
parents 00561c56 cd19b3ce
No related branches found
No related tags found
1 merge request!22Release 0.3
......@@ -503,10 +503,11 @@ def assure_parents_are(entity, parents, to_be_updated=None,
if isinstance(e, db.Entity):
if e.name is None:
raise Exception("Entity should have name")
parents[i] = e.name
else:
parents[i] = db.Entity(name=e)
if ([p.name.lower() for p in entity.get_parents()]
== [p.lower() for p in parents]):
== [p.name.lower() for p in parents]):
logger.debug("entity {} has parents {}".format(entity.id, parents))
......
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