From ecccc01fc2a0f036c79bbd9b04f00a9847c0ef2a Mon Sep 17 00:00:00 2001 From: yaemiku Date: Mon, 25 Apr 2022 16:18:32 +0000 Subject: [PATCH] [fix] correct the list comprehension --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index a31bb80..64548d3 100644 --- a/app/views.py +++ b/app/views.py @@ -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})