From b96b88d2e5a208cbd1ec04c929e4a8fa1c55e326 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Mar 2021 13:05:29 +0000 Subject: [PATCH] . --- generic/views.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/generic/views.py b/generic/views.py index c97e26d4..56d30616 100644 --- a/generic/views.py +++ b/generic/views.py @@ -332,12 +332,11 @@ class ExamViews(View, LoginRequiredMixin): "json_creation_time": creation_time } - #if self.question_type == "long": - # h = {} - # #for question in exam.exam_questions.all(): - # # h[question.pk] = question.json_creation_time.isoformat() - # # h[question.pk] = "TEST" - # json["multi_question_json"] = h + if self.question_type == "long": + h = {} + for question in exam.exam_questions.all(): + h[question.pk] = question.json_creation_time.isoformat() + json["multi_question_json"] = h active_exams["exams"].append( obj ) if json == False: