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

FIX: deal with duplicates in the to_be_updated container

parent 10ef7e62
No related branches found
No related tags found
No related merge requests found
...@@ -151,6 +151,15 @@ class AbstractCFood(object): ...@@ -151,6 +151,15 @@ class AbstractCFood(object):
get_ids_for_entities_with_names(self.to_be_updated) get_ids_for_entities_with_names(self.to_be_updated)
# remove duplicates
tmp = db.Container()
for el in self.to_be_updated:
if el not in tmp:
tmp.append(el)
self.to_be_updated = tmp
if self.verbosity >= INFO: if self.verbosity >= INFO:
print("/"*60) print("/"*60)
print("UPDATE: updating the following entities") print("UPDATE: updating the following entities")
......
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