From f2e499547ffc32392f8896921553d72b421b3c9c Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 26 Jun 2021 16:12:07 +0100 Subject: [PATCH] . --- rapids/models.py | 2 +- rapids/views.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rapids/models.py b/rapids/models.py index 3cafa066..bbfa2bf7 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -419,13 +419,13 @@ class Exam(ExamBase): exam_questions[q.id] = { "images": images, - "normal": q.normal, #"feedback_image": [], #"annotations": [str(q.image_annotations)], "type": "rapid", } if not self.exam_mode: + exam_questions[q.id]["normal"] = q.normal exam_questions[q.id]["feedback_images"] = feedback_images exam_questions[q.id]["answers"] = list(q.GetCorrectUnstrippedAnswers()) diff --git a/rapids/views.py b/rapids/views.py index 9b87b875..d1ad0ac4 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -578,9 +578,9 @@ def loadJsonAnswer(answer): posted_answer = answer["ans"] - # qidn 1 does not hold answer data (but should always arrive prior to 2) - if answer["qidn"] == "1": - posted_answer = "" + ## qidn 1 does not hold answer data (but should always arrive prior to 2) + #if answer["qidn"] == "1": + # posted_answer = "" # Normal answers are just posted with the answer "Normal" normal = False