summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorprathamesh2016-02-23 12:35:35 +0530
committerprathamesh2016-02-23 12:35:35 +0530
commit0a10f67dcb20984ff294e8f792b5716e5adee0e8 (patch)
treeff53314dc21496abcfdc3b181efc1caa5a91c1c5 /yaksh
parentacb128c0637c19aebaae0e620b12d918f9544a95 (diff)
downloadonline_test-0a10f67dcb20984ff294e8f792b5716e5adee0e8.tar.gz
online_test-0a10f67dcb20984ff294e8f792b5716e5adee0e8.tar.bz2
online_test-0a10f67dcb20984ff294e8f792b5716e5adee0e8.zip
minor shuffle
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index bbab12f..72b11d9 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1170,13 +1170,13 @@ def show_statistics(request, questionpaper_id):
user = request.user
if not is_moderator(user):
raise Http404('You are not allowed to view this page')
- questions_answered = []
- question_stats = {}
papers = AnswerPaper.objects.filter(question_paper_id=questionpaper_id,
status='completed')
total_attempt = papers.count()
if total_attempt == 0:
return my_redirect('/exam/manage/')
+ questions_answered = []
+ question_stats = {}
for paper in papers:
questions_answered += paper.questions_answered.split('|')
quiz_name = paper.question_paper.quiz.description