This commit is contained in:
Ross
2021-03-01 14:35:00 +00:00
parent 35cfb00ef1
commit cafdfcc83c
+1 -1
View File
@@ -976,7 +976,7 @@ def question_json(request, pk):
#if not exam.active: #if not exam.active:
# raise Http404("No available exam") # raise Http404("No available exam")
question_json_cache = cache.get("{}_question_json_{}".format("longs", sk)) question_json_cache = cache.get("{}_question_json_{}".format("longs", pk))
if question_json_cache is not None and not question.recreate_json: if question_json_cache is not None and not question.recreate_json:
question_json_cache["cached"] = True question_json_cache["cached"] = True