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

MAINT: do only call update on the container when there is content

parent 4e0d19db
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,9 @@ class AbstractCFood(object):
""" Updates the self.to_be_updated Container, i.e. pushes the changes
to CaosDB
"""
if len(self.to_be_updated) == 0:
return
get_ids_for_entities_with_names(self.to_be_updated)
self.to_be_updated.update()
......
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