This commit is contained in:
Sabin Iacob
2017-05-25 22:46:06 +03:00
committed by Yorik van Havre
parent bed4255b0d
commit d0bad0a3fc

View File

@@ -553,6 +553,7 @@ def sort_jobs(locations, keys, attractors=[]):
zero = defaultdict(lambda: 0)
out.append(find_closest(locations, zero, sqdist))
locations.remove(out[-1])
while locations:
closest = find_closest(locations, out[-1], sqdist)