# HG changeset patch # User Sverre Rabbelier # Date 1239452861 0 # Node ID 5c125051252ebf440fc6480f10353b9b67d1416d # Parent 8e6f98adb243b1013452ae30c3f11a93c7e9aaad When ranking, put them at or above the given rank Patch by: Sverre Rabbelier diff -r 8e6f98adb243 -r 5c125051252e app/soc/views/models/student_proposal.py --- a/app/soc/views/models/student_proposal.py Sat Apr 11 12:27:20 2009 +0000 +++ b/app/soc/views/models/student_proposal.py Sat Apr 11 12:27:41 2009 +0000 @@ -693,7 +693,8 @@ # get the score at the requested rank score_at_rank = score_and_rank[0][0] # calculate the score that should be given to end up at the given rank - given_score = score_at_rank - entity.score + # give +1 to make sure that in the case of a tie they end up top + given_score = score_at_rank - entity.score + 1 else: # might be None (if Host or Developer is commenting) reviewer = mentor