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