From fee2f97d867e11216ee928f37c228e94a951bb9c Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 15 Sep 2020 15:19:58 +0530 Subject: Show missing marks in grade user --- yaksh/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/views.py') diff --git a/yaksh/views.py b/yaksh/views.py index 0ed8f9f..a8f0d23 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1964,7 +1964,7 @@ def grade_user(request, quiz_id=None, user_id=None, attempt_number=None, for paper in papers: for question, answers in paper.get_question_answers().items(): marks = float(request.POST.get('q%d_marks' % question.id, 0)) - answer = answers[-1]['answer'] + answer = answers[0]['answer'] answer.set_marks(marks) answer.save() paper.update_marks() -- cgit