This commit is contained in:
Ross
2021-12-12 23:04:11 +00:00
parent 81b29eca1d
commit 42e12896f9
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<ol> <ol>
{% for cid in cid_users %} {% for cid in cid_users %}
<li>{{cid.cid}} [{{cid.passcode}}</li> <li>{{cid.cid}} [{{cid.passcode}}]</li>
{% endfor %} {% endfor %}
</ol> </ol>
+3 -2
View File
@@ -240,7 +240,9 @@ def loadJsonAnswer(answer):
exam = get_object_or_404(Exam, pk=eid) exam = get_object_or_404(Exam, pk=eid)
if not exam.check_cid_user(answer["cid"], answer["passcode"]): if not exam.check_cid_user(answer["cid"], answer["passcode"]):
return False, JsonResponse({"success": False, "error": "invalid cid / passcode"}) return False, JsonResponse(
{"success": False, "error": "invalid cid / passcode"}
)
# if not exam.active: # if not exam.active:
# return False, JsonResponse( # return False, JsonResponse(
@@ -535,7 +537,6 @@ def exam_scores_cid(request, pk):
"anatomy/exam_scores.html", "anatomy/exam_scores.html",
{ {
"cids": cids, "cids": cids,
"passcode": passcode,
"exam": exam, "exam": exam,
"unmarked": unmarked, "unmarked": unmarked,
"questions": questions, "questions": questions,