This commit is contained in:
Ross
2021-07-29 21:24:56 +01:00
parent a32fca2228
commit fbaee730b9
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@ CID: {{cid}}
<h2>Exam: {{exam.name}}</h2>
<div><p>Questions</p></div>
{{answer_count}} out of {exam_count} questions answered.
<ul class="question-list">
{% for question, answer in question_answer_tuples %}
<li class="">{{forloop.counter}}: {{answer.answer}}</li>
+3 -1
View File
@@ -263,7 +263,9 @@ def exam_finish(request, pk, cid):
"sbas/exam_finish.html",
{
"exam": exam,
"question_answer_tuples": question_answer_tuples
"question_answer_tuples": question_answer_tuples,
"answer_count": answers.length,
"exam_length": exam.length,
},
)