.
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user