diff --git a/ref-test/quiz/templates/quiz/result.html b/ref-test/quiz/templates/quiz/result.html
index b0fd705..2603d6b 100644
--- a/ref-test/quiz/templates/quiz/result.html
+++ b/ref-test/quiz/templates/quiz/result.html
@@ -30,7 +30,7 @@
{% if entry.results.grade == 'fail' %}
- Unfortunately, you have not passed the theory exam in this attempt. For your next attempt, it might help to revise the following topics:
+ Unfortunately, you have not passed the theory exam in this attempt. For your next attempt, it might help to brush up on the following topics:
{% for tag in tag_output %}
diff --git a/ref-test/quiz/views.py b/ref-test/quiz/views.py
index 245bbe8..6b85385 100644
--- a/ref-test/quiz/views.py
+++ b/ref-test/quiz/views.py
@@ -176,6 +176,8 @@ def result():
tags_low = { tag: tag_result['max'] - tag_result['scored'] for tag, tag_result in entry['results']['tags'].items() }
sorted_low_tags = sorted(tags_low.items(), key=lambda x: x[1], reverse=True)
tag_output = [ tag[0] for tag in sorted_low_tags[0:3] if tag[1] > 3]
+ revision_plain = ''
+ revision_html = ''
if entry['results']['grade'] == 'pass':
flavour_text_plain = """Well done on successfully completing the refereeing theory exam. We really appreciate members of our community taking the time to get qualified to referee.
"""
@@ -185,6 +187,14 @@ def result():
elif entry['results']['grade'] == 'fail':
flavour_text_plain = """Unfortunately, you were not successful in passing the theory exam in this attempt. We hope that this does not dissuade you, and that you try again in the future.
"""
+ revision_plain = f"""Based on your answers, we would also suggest you brush up on the following topics for your next attempt:\n\n
+ {','.join(tag_output)}\n\n
+ """
+ revision_html = f"""Based on your answers, we would also suggest you brush up on the following topics for your next attempt:
+
+ - {'
- '.join(tag_output)}
+
+ """
if not entry['status'] == 'late':
email = Message(
subject="SKA Refereeing Theory Exam Results",
@@ -200,8 +210,7 @@ def result():
Score: {score}%\n
Grade: {entry['results']['grade']}\n\n
{flavour_text_plain}\n\n
- Based on your answers, we would also suggest you brush up on the following topics as you continue refereeing:\n\n
- {','.join(tag_output)}\n\n
+ {revision_plain}
Thank you for taking the time to get qualified as a referee.\n\n
Best wishes,\n
SKA Refereeing
@@ -217,10 +226,7 @@ def result():
{score}%
{entry['results']['grade']}
{flavour_text_plain}
- Based on your answers, we would also suggest you revise the following topics as you continue refereeing:
-
- - {'
- '.join(tag_output)}
-
+ {revision_html}
Thank you for taking the time to get qualified as a referee.
Best wishes,
SKA Refereeing