diff options
author | ankitjavalkar | 2016-11-18 16:24:45 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-21 18:12:52 +0530 |
commit | 66ee0552653ee139491d5166d20f8bce7a5c835a (patch) | |
tree | d98e58ba8955a38c79a99c09bc215f9b4f7cdb04 /yaksh/views.py | |
parent | 15de9ce5fe9d1e456bfae60090807a77c6afef0a (diff) | |
download | online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.tar.gz online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.tar.bz2 online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.zip |
Render output errors properly 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 c330a75..b92b3fe 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1044,7 +1044,7 @@ def grade_user(request, quiz_id=None, user_id=None, attempt_number=None): if request.method == "POST": papers = data['papers'] for paper in papers: - for question, answers in six.iteritems(paper.get_question_answers()): + for question, answers, errors in six.iteritems(paper.get_question_answers()): marks = float(request.POST.get('q%d_marks' % question.id, 0)) answers = answers[-1] answers.set_marks(marks) |