.
This commit is contained in:
+5
-2
@@ -597,15 +597,18 @@ def exam_scores_cid2(request, pk):
|
|||||||
|
|
||||||
questions = exam.exam_questions.all()
|
questions = exam.exam_questions.all()
|
||||||
|
|
||||||
cids = (
|
cid_user_answers = (
|
||||||
CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)
|
CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cids = set()
|
||||||
|
|
||||||
|
|
||||||
# Loop through all candidates
|
# Loop through all candidates
|
||||||
for cid_user_answer in cids:
|
for cid_user_answer in cid_user_answers:
|
||||||
# Convoluted (probably...)
|
# Convoluted (probably...)
|
||||||
cid = cid_user_answer.cid
|
cid = cid_user_answer.cid
|
||||||
|
cids.add(cid)
|
||||||
s = cid_user_answer
|
s = cid_user_answer
|
||||||
user_names[cid] = cid
|
user_names[cid] = cid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user