[fix] reversed -> reverse
This commit is contained in:
parent
ecccc01fc2
commit
54014321db
@ -43,7 +43,7 @@ def SubmitStudentsView(request):
|
||||
|
||||
if edition.submissions is not True:
|
||||
ranking = {}
|
||||
for index, student in enumerate(sorted(Student.objects.filter(identifier__startswith=f'{edition.year}-'), key=lambda x: x.score_first*x.score_second, reversed=True)):
|
||||
for index, student in enumerate(sorted(Student.objects.filter(identifier__startswith=f'{edition.year}-'), key=lambda x: x.score_first*x.score_second, reverse=True)):
|
||||
ranking[student.identifier] = index + 1
|
||||
|
||||
queryset = Student.objects.filter(
|
||||
|
Loading…
Reference in New Issue
Block a user