This commit is contained in:
Ross
2021-06-26 16:12:07 +01:00
parent a5ed0c6ade
commit f2e499547f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -419,13 +419,13 @@ class Exam(ExamBase):
exam_questions[q.id] = { exam_questions[q.id] = {
"images": images, "images": images,
"normal": q.normal,
#"feedback_image": [], #"feedback_image": [],
#"annotations": [str(q.image_annotations)], #"annotations": [str(q.image_annotations)],
"type": "rapid", "type": "rapid",
} }
if not self.exam_mode: if not self.exam_mode:
exam_questions[q.id]["normal"] = q.normal
exam_questions[q.id]["feedback_images"] = feedback_images exam_questions[q.id]["feedback_images"] = feedback_images
exam_questions[q.id]["answers"] = list(q.GetCorrectUnstrippedAnswers()) exam_questions[q.id]["answers"] = list(q.GetCorrectUnstrippedAnswers())
+3 -3
View File
@@ -578,9 +578,9 @@ def loadJsonAnswer(answer):
posted_answer = answer["ans"] posted_answer = answer["ans"]
# qidn 1 does not hold answer data (but should always arrive prior to 2) ## qidn 1 does not hold answer data (but should always arrive prior to 2)
if answer["qidn"] == "1": #if answer["qidn"] == "1":
posted_answer = "" # posted_answer = ""
# Normal answers are just posted with the answer "Normal" # Normal answers are just posted with the answer "Normal"
normal = False normal = False