This commit is contained in:
Ross
2020-12-27 23:35:16 +00:00
parent 22dd3aeaac
commit 0b09d1d4cc
+5
View File
@@ -562,7 +562,11 @@ def exam_json(request, pk):
exam_questions = defaultdict(dict)
exam_order = []
for q in questions:
exam_order.append(q.id)
exam_questions[q.id] = {
"title": "{}".format(q.description),
"question": str(q.question_type),
@@ -577,6 +581,7 @@ def exam_json(request, pk):
"exam_type": "anatomy",
"exam_name": exam.name,
"exam_mode": True,
"exam_order": exam_order,
"questions": exam_questions,
}