From 0a10f67dcb20984ff294e8f792b5716e5adee0e8 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 23 Feb 2016 12:35:35 +0530 Subject: minor shuffle --- yaksh/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/views.py') 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 -- cgit