This commit is contained in:
Ross
2020-11-23 16:33:43 +00:00
parent 3ffb49de97
commit 8c2b3e5a33
+2
View File
@@ -465,6 +465,7 @@ def exam_json(request, pk):
exam_json_cache = cache.get("exam_json_{}".format(pk))
if exam_json_cache is not None and not exam.recreate_json:
exam_json_cache["cached"] = False
return JsonResponse(exam_json_cache)
@@ -482,6 +483,7 @@ def exam_json(request, pk):
exam_json = {
"eid": exam.id,
"cached": False,
"exam_type": "anatomy",
"exam_name": exam.name,
"exam_mode": True,