[fix] correct the list comprehension

This commit is contained in:
Nikola Kubiczek 2022-04-25 16:18:32 +00:00
parent 8e8474920f
commit ecccc01fc2

View File

@ -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})