.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
{% extends 'anatomy/exams.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% load thumbnail %}
|
||||
<div class="anatomy">
|
||||
<h1>Exam: {{ exam.name }}</h1>
|
||||
|
||||
<p>{{cid_user_count}} users.</p>
|
||||
|
||||
|
||||
<ol>
|
||||
{% for cid in cid_users %}
|
||||
<li>{{cid.cid}} [{{cid.passcode}}]</li>
|
||||
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -8,7 +8,7 @@
|
||||
{% if exam.exam_mode %}
|
||||
<a href="{% url 'anatomy:mark_overview' pk=exam.pk %}">Mark</a> /
|
||||
<a href="{% url 'anatomy:exam_scores_cid' pk=exam.pk %}">Scores</a> /
|
||||
<a href="{% url 'anatomy:exam_cids' exam_id=exam.pk %}">CIDs</a> /
|
||||
<a href="{% url 'anatomy:exam_cids' exam_id=exam.pk %}">Candidates</a> /
|
||||
{% endif %}
|
||||
<a href="{% url 'anatomy:anatomy_create_exam' pk=exam.pk %}">Add New Question</a>
|
||||
{% endblock %}
|
||||
|
||||
+1
-1
@@ -226,7 +226,7 @@ def loadJsonAnswer(answer):
|
||||
# in the frontend this is appended with the type
|
||||
# e.g. anatomy/1
|
||||
|
||||
# TODO Update to only allow valid CIDs
|
||||
# TODO Update to only allow valid Candidates
|
||||
eid = int(answer["eid"].split("/")[1])
|
||||
# As access is not restricted make sure the data appears valid
|
||||
if (not isinstance(answer["cid"], int)) or (
|
||||
|
||||
Reference in New Issue
Block a user