Don't return an empty dict when no allocation can be made
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 14 Mar 2009 19:45:52 +0000
changeset 1854 79c9f683f23b
parent 1853 6cd70644892d
child 1855 8c76c32a2392
Don't return an empty dict when no allocation can be made Patch by: Sverre Rabbelier
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()