Skip to content
Snippets Groups Projects
Commit cd19b3ce authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: use id of entities

parent 00561c56
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