summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 7a40fae..f9dda45 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -548,7 +548,7 @@ class Quiz(models.Model):
user=user, course=course, question_paper=qp
).order_by("-attempt_number")
if ans_ppr.exists():
- return ans_ppr.first().passed
+ return any([paper.passed for paper in ans_ppr])
return False
def _create_quiz_copy(self, user):