diff --git a/anatomy/templates/anatomy/exam_cids.html b/anatomy/templates/anatomy/exam_cids.html
index 5c152616..fea07897 100644
--- a/anatomy/templates/anatomy/exam_cids.html
+++ b/anatomy/templates/anatomy/exam_cids.html
@@ -11,7 +11,7 @@
{% for cid in cid_users %}
- - {{cid.cid}} [{{cid.passcode}}
+ - {{cid.cid}} [{{cid.passcode}}]
{% endfor %}
diff --git a/anatomy/views.py b/anatomy/views.py
index 55073b13..d9f45252 100644
--- a/anatomy/views.py
+++ b/anatomy/views.py
@@ -134,8 +134,8 @@ def answer_question(request, pk):
)
-#@login_required
-#def exam_take(request, pk, sk):
+# @login_required
+# def exam_take(request, pk, sk):
# """
# Allows taking of the exam on the django server (when logged in)
#
@@ -210,7 +210,7 @@ def answer_question(request, pk):
# )
-#def flag_question(request):
+# def flag_question(request):
# pk = request.GET.get("pk", None)
# ans = UserAnswer.objects.filter(user=request.user, question__pk=pk).first()
# ans.flagged = not ans.flagged
@@ -240,7 +240,9 @@ def loadJsonAnswer(answer):
exam = get_object_or_404(Exam, pk=eid)
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:
# return False, JsonResponse(
@@ -535,7 +537,6 @@ def exam_scores_cid(request, pk):
"anatomy/exam_scores.html",
{
"cids": cids,
- "passcode": passcode,
"exam": exam,
"unmarked": unmarked,
"questions": questions,