From d688b31fa64d793857914f70faa28c7ca1e6c2d7 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Thu, 9 Apr 2009 22:04:47 +0000 Subject: [PATCH] If nothing is assigned, return no assignments Before the popularity was returned instead. Patch by: Sverre Rabbelier --- app/soc/logic/allocations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soc/logic/allocations.py b/app/soc/logic/allocations.py index bfa442ae..8123a7e4 100644 --- a/app/soc/logic/allocations.py +++ b/app/soc/logic/allocations.py @@ -88,7 +88,7 @@ class Allocator(object): self.buildSets() if not sum(self.popularity.values()) or not sum(self.max.values()): - return self.popularity + return dict([(i, 0) for i in self.orgs]) if self.iterative: return self.iterativeAllocation() -- 2.11.4.GIT