# HG changeset patch # User Sverre Rabbelier # Date 1237059952 0 # Node ID 79c9f683f23b1d22559ccb8e51e5478ec9840b3e # Parent 6cd70644892d140f36d72ed77669088f03a8f860 Don't return an empty dict when no allocation can be made Patch by: Sverre Rabbelier diff -r 6cd70644892d -r 79c9f683f23b app/soc/logic/allocations.py --- a/app/soc/logic/allocations.py Sat Mar 14 18:02:01 2009 +0000 +++ b/app/soc/logic/allocations.py Sat Mar 14 19:45:52 2009 +0000 @@ -87,7 +87,7 @@ self.buildSets() if not sum(self.popularity.values()) or not sum(self.mentors.values()): - return {} + return self.popularity if self.iterative: return self.iterativeAllocation()