summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorankitjavalkar2016-11-18 16:24:45 +0530
committerankitjavalkar2016-12-21 18:12:52 +0530
commit66ee0552653ee139491d5166d20f8bce7a5c835a (patch)
treed98e58ba8955a38c79a99c09bc215f9b4f7cdb04 /yaksh/models.py
parent15de9ce5fe9d1e456bfae60090807a77c6afef0a (diff)
downloadonline_test-66ee0552653ee139491d5166d20f8bce7a5c835a.tar.gz
online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.tar.bz2
online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.zip
Render output errors properly in grade user
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 6e1744c..4fd6967 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1027,9 +1027,9 @@ class AnswerPaper(models.Model):
for answer in self.answers.all():
question = answer.question
if question in q_a:
- q_a[question].append(answer)
+ q_a[question].append((answer, [e for e in json.loads(answer.error)]))
else:
- q_a[question] = [answer]
+ q_a[question] = [(answer, [e for e in json.loads(answer.error)])]
return q_a
def get_questions(self):