diff options
author | prathamesh | 2016-02-23 12:35:35 +0530 |
---|---|---|
committer | prathamesh | 2016-02-23 12:35:35 +0530 |
commit | 0a10f67dcb20984ff294e8f792b5716e5adee0e8 (patch) | |
tree | ff53314dc21496abcfdc3b181efc1caa5a91c1c5 /yaksh/views.py | |
parent | acb128c0637c19aebaae0e620b12d918f9544a95 (diff) | |
download | online_test-0a10f67dcb20984ff294e8f792b5716e5adee0e8.tar.gz online_test-0a10f67dcb20984ff294e8f792b5716e5adee0e8.tar.bz2 online_test-0a10f67dcb20984ff294e8f792b5716e5adee0e8.zip |
minor shuffle
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 4 |
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 |