equal
deleted
inserted
replaced
149 |
149 |
150 def rangeSlots(self, slots, org): |
150 def rangeSlots(self, slots, org): |
151 """Returns the amount of slots for the org within the required bounds. |
151 """Returns the amount of slots for the org within the required bounds. |
152 """ |
152 """ |
153 |
153 |
154 slots = int(math.floor(slots)) |
154 slots = int(math.floor(float(slots))) |
155 slots = min(slots, self.max_slots_per_org) |
155 slots = min(slots, self.max_slots_per_org) |
156 slots = max(slots, self.min_slots_per_org) |
156 slots = max(slots, self.min_slots_per_org) |
157 slots = min(slots, self.mentors[org]) |
157 slots = min(slots, self.mentors[org]) |
158 |
158 |
159 return slots |
159 return slots |