summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2021-02-10 19:02:29 +0530
committeradityacp2021-02-10 19:02:29 +0530
commit8c1c1f6c8b1de16fba5f93e58a0cd3cb751e02d7 (patch)
treef55b9b990e1b4881d91770d6304cc9059ffaf1f3 /yaksh/models.py
parentc179633d31dbdd1bb4cc9a6e157664bc5712756c (diff)
downloadonline_test-8c1c1f6c8b1de16fba5f93e58a0cd3cb751e02d7.tar.gz
online_test-8c1c1f6c8b1de16fba5f93e58a0cd3cb751e02d7.tar.bz2
online_test-8c1c1f6c8b1de16fba5f93e58a0cd3cb751e02d7.zip
Change in templates, views
- Revamp UI in course page - Fix a bug where a trial module is created without setting is_trial in models - Fix a bug in question statistics where only completed answerpaper data is needed
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 b4d0f76..5934ae2 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -2027,7 +2027,7 @@ class AnswerPaperManager(models.Manager):
que_ids = [que.id for que in all_questions]
papers = self.filter(
question_paper_id=questionpaper_id, course_id=course_id,
- attempt_number=attempt_number
+ attempt_number=attempt_number, status=status
).values_list("id", flat=True)
answers = Answer.objects.filter(
answerpaper__id__in=papers, question_id__in=que_ids