diff options
author | Palaparthy Adityachandra | 2020-09-15 16:00:41 +0530 |
---|---|---|
committer | GitHub | 2020-09-15 16:00:41 +0530 |
commit | c9d0d238cd201310e5e6da546f518675f7a12440 (patch) | |
tree | 80ccacb0b89cabb22f6b4340944b2b668550afb6 /yaksh/views.py | |
parent | 34539e10f25e6bd12862f4a4f045ca1fb667844e (diff) | |
parent | fee2f97d867e11216ee928f37c228e94a951bb9c (diff) | |
download | online_test-c9d0d238cd201310e5e6da546f518675f7a12440.tar.gz online_test-c9d0d238cd201310e5e6da546f518675f7a12440.tar.bz2 online_test-c9d0d238cd201310e5e6da546f518675f7a12440.zip |
Merge pull request #765 from adityacp/fix_grade_user
Show missing marks in grade user
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |