Browse Source

Fix order of time on rankings; should be earliest

raylu 14 years ago
parent
commit
42c24242a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pyc/grader/views.py

+ 1 - 1
pyc/grader/views.py

@@ -15,7 +15,7 @@ def password_changed(request):
 def lab(request, lab_id):
 	from datetime import timedelta
 	lab = Lab.objects.get(pk=lab_id)
-	submissions = lab.submission_set.filter(user__is_staff=False).order_by('-grade', '-time')
+	submissions = lab.submission_set.filter(user__is_staff=False).order_by('-grade', 'time')
 
 	# times are stored in UTC; do the conversion here
 	tzoffset = timedelta(0, 0, 0, 0, 0, -7) # -7 hours