# HG changeset patch # User Sverre Rabbelier # Date 1236478395 0 # Node ID 9dc63101b107e922c382e0d9913139ac59cc7147 # Parent 72fb61f67ff57f7544cf2549e6447c741584eff8 Support non-float slots This is for easier interaction with the frontend. Patch by: Sverre Rabbelier diff -r 72fb61f67ff5 -r 9dc63101b107 app/soc/logic/allocations.py --- a/app/soc/logic/allocations.py Sun Mar 08 02:05:12 2009 +0000 +++ b/app/soc/logic/allocations.py Sun Mar 08 02:13:15 2009 +0000 @@ -151,7 +151,7 @@ """Returns the amount of slots for the org within the required bounds. """ - slots = int(math.floor(slots)) + slots = int(math.floor(float(slots))) slots = min(slots, self.max_slots_per_org) slots = max(slots, self.min_slots_per_org) slots = min(slots, self.mentors[org])