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

ENH: set ids when directly updating

parent 6c27f993
No related branches found
No related tags found
No related merge requests found
......@@ -273,6 +273,7 @@ def assure_has_parent(entity, parent, to_be_updated=None, verbosity=INFO):
entity.add_parent(parent)
if to_be_updated is None:
get_ids_for_entities_with_names([entity])
entity.update(unique=False)
else:
to_be_updated.append(entity)
......@@ -315,6 +316,7 @@ def assure_has_property(entity, name, value, to_be_updated=None,
entity.add_property(name=name, value=value)
if to_be_updated is None:
get_ids_for_entities_with_names([entity])
entity.update(unique=False)
else:
to_be_updated.append(entity)
......
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