[fix] correct the list comprehension
This commit is contained in:
parent
8e8474920f
commit
ecccc01fc2
@ -49,7 +49,7 @@ def SubmitStudentsView(request):
|
||||
queryset = Student.objects.filter(
|
||||
identifier__startswith=f'{edition.year}-{request.user.id}-').order_by('identifier')
|
||||
|
||||
students = [{**student.__dict__, 'ranking': ranking[student.identifier]} for queryset]
|
||||
students = [{**student.__dict__, 'ranking': ranking[student.identifier]} for student in queryset]
|
||||
|
||||
return render(request, 'user/submission.html', {'students': students, **context})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user