From a0448b2d821eafaf90d23bc812a3e7f98b79930e Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 1 Aug 2021 10:43:58 +0100 Subject: [PATCH] . --- longs/templates/longs/exam_overview.html | 1 + longs/templates/longs/long_display_block.html | 1 + longs/views.py | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/longs/templates/longs/exam_overview.html b/longs/templates/longs/exam_overview.html index 6671b7cd..6e426ccb 100644 --- a/longs/templates/longs/exam_overview.html +++ b/longs/templates/longs/exam_overview.html @@ -54,6 +54,7 @@
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}), JSON creation id: {{exam.exam_json_id}} + {% if question.recreate_json %}[JSON out of date]{% endif %}
JSON Refresh JSON cache diff --git a/longs/templates/longs/long_display_block.html b/longs/templates/longs/long_display_block.html index ecb78eea..3c4e8075 100755 --- a/longs/templates/longs/long_display_block.html +++ b/longs/templates/longs/long_display_block.html @@ -59,6 +59,7 @@
JSON creation time: {{question.json_creation_time}} ({{question.json_creation_time|date:"c"}}), JSON creation id: {{question.question_json_id}} + {% if question.recreate_json %}[JSON out of date]{% endif %}
JSON Refresh JSON cache \ No newline at end of file diff --git a/longs/views.py b/longs/views.py index cef9b743..82acfe76 100755 --- a/longs/views.py +++ b/longs/views.py @@ -990,9 +990,7 @@ def question_json_recreate(request, pk): # We also have to invalidate any exams - print("Start") for exam in question.exams.all(): - print(exam) exam.recreate_json = True exam.save()