add time limit to exams

This commit is contained in:
Ross
2020-12-28 10:18:34 +00:00
parent 0b09d1d4cc
commit a1f73afec5
3 changed files with 31 additions and 6 deletions
+3
View File
@@ -585,6 +585,9 @@ def exam_json(request, pk):
"questions": exam_questions,
}
if exam.time_limit:
exam_json["exam_time"] = exam.time_limit
exam.recreate_json = False
exam.save()