diff -r 573301607587 -r 67c1cb524b78 app/soc/logic/allocations.py --- a/app/soc/logic/allocations.py Fri Apr 10 11:27:15 2009 +0000 +++ b/app/soc/logic/allocations.py Fri Apr 10 11:27:33 2009 +0000 @@ -277,6 +277,10 @@ total_popularity = sum(self.popularity.values()) + # all orgs have been locked, nothing to do + if total_popularity <= 0: + return allocations + pop_per_slot = float(available_slots)/float(total_popularity) slack = 0