# HG changeset patch # User Sverre Rabbelier # Date 1239314687 0 # Node ID 3d5692ae414c18ae6d7bc3b629c37ecbb5f0db55 # Parent 5d55e61dd338e4ec9ba507c03a729bf55662c142 If nothing is assigned, return no assignments Before the popularity was returned instead. Patch by: Sverre Rabbelier diff -r 5d55e61dd338 -r 3d5692ae414c app/soc/logic/allocations.py --- a/app/soc/logic/allocations.py Wed Apr 08 23:45:41 2009 +0000 +++ b/app/soc/logic/allocations.py Thu Apr 09 22:04:47 2009 +0000 @@ -88,7 +88,7 @@ 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()