.
This commit is contained in:
@@ -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
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user