From 0b09d1d4cc8d137b046c785720f629647b44fa6d Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 27 Dec 2020 23:35:16 +0000 Subject: [PATCH] . --- anatomy/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anatomy/views.py b/anatomy/views.py index a510e2f3..cd6fb085 100644 --- a/anatomy/views.py +++ b/anatomy/views.py @@ -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, }