Commit 5db4700d authored by Felix Seibert's avatar Felix Seibert
Browse files

do not return movements with the same origin and target

parent c1ebfac1
......@@ -318,7 +318,10 @@ class DataDistribution(object):
new_assignments = self.add_folders(folders_to_be_reassigned)
for folder_id, target in new_assignments:
movements[folder_id] = (movements[folder_id], target)
if movements[folder_id] == target:
del movements[folder_id]
movements[folder_id] = (movements[folder_id], target)
return movements
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment