app/soc/logic/allocations.py
changeset 1854 79c9f683f23b
parent 1751 17c7a7a48dc7
child 2073 6eb9b4652c80
equal deleted inserted replaced
1853:6cd70644892d 1854:79c9f683f23b
    85     self.adjusted_slots = adjusted_slots
    85     self.adjusted_slots = adjusted_slots
    86 
    86 
    87     self.buildSets()
    87     self.buildSets()
    88 
    88 
    89     if not sum(self.popularity.values()) or not sum(self.mentors.values()):
    89     if not sum(self.popularity.values()) or not sum(self.mentors.values()):
    90       return {}
    90       return self.popularity
    91 
    91 
    92     if self.iterative:
    92     if self.iterative:
    93       return self.iterativeAllocation()
    93       return self.iterativeAllocation()
    94     else:
    94     else:
    95       return self.preprocessingAllocation()
    95       return self.preprocessingAllocation()