summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-26 09:59:55 +0530
committerPrabhu Ramachandran2011-11-26 09:59:55 +0530
commit661933dc2d7351b52bfd8b599bd0f8ba700f3b4a (patch)
treea3b865ccb3f398da31f4e07fd534ed1904832e77
parent3ba7a660e0d93ea258ca133edcc5f33a997a8e0e (diff)
downloadonline_test-661933dc2d7351b52bfd8b599bd0f8ba700f3b4a.tar.gz
online_test-661933dc2d7351b52bfd8b599bd0f8ba700f3b4a.tar.bz2
online_test-661933dc2d7351b52bfd8b599bd0f8ba700f3b4a.zip
BUG: Monitor was not showing sorted results.
-rw-r--r--exam/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/exam/views.py b/exam/views.py
index 61179de..98fe7c7 100644
--- a/exam/views.py
+++ b/exam/views.py
@@ -285,7 +285,7 @@ def monitor(request, quiz_id=None):
papers = QuestionPaper.objects.filter(quiz=quiz,
user__profile__isnull=False)
- sorted(papers,
+ papers = sorted(papers,
cmp=lambda x, y: cmp(x.get_total_marks(), y.get_total_marks()),
reverse=True)