.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from collections import defaultdict, Counter
|
||||
from pathlib import Path
|
||||
import statistics
|
||||
import threading
|
||||
from dal import autocomplete
|
||||
@@ -1479,6 +1480,8 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
path = "{0}{1}/exam/{2}.json".format(settings.MEDIA_ROOT, self.app_name, pk)
|
||||
url = "{0}{1}/exam/{2}.json".format(settings.MEDIA_URL, self.app_name, pk)
|
||||
|
||||
Path(path).parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
if os.path.isfile(path) and not exam.recreate_json:
|
||||
# exam_json_cache["cached"] = True
|
||||
# Make sure we pass on an argument if we are forcing a reload
|
||||
|
||||
Reference in New Issue
Block a user