fixes
This commit is contained in:
+2
-2
@@ -569,7 +569,7 @@ def exam_json(request, pk):
|
||||
if not exam.active:
|
||||
raise Http404("No available exam")
|
||||
|
||||
exam_json_cache = cache.get("exam_json_{}".format(pk))
|
||||
exam_json_cache = cache.get("anatomy_exam_json_{}".format(pk))
|
||||
|
||||
if exam_json_cache is not None and not exam.recreate_json:
|
||||
exam_json_cache["cached"] = True
|
||||
@@ -608,7 +608,7 @@ def exam_json(request, pk):
|
||||
exam.recreate_json = False
|
||||
exam.save()
|
||||
|
||||
cache.set("exam_json_{}".format(pk), exam_json, 3600)
|
||||
cache.set("anatomy_exam_json_{}".format(pk), exam_json, 3600)
|
||||
|
||||
return JsonResponse(exam_json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user