fix: user with lower AC rate ranks higher

This commit is contained in:
pvpnvz 2017-07-07 16:46:54 +08:00
parent 116377dc70
commit f8e58c5bbc

View File

@ -478,7 +478,7 @@ class TwoFactorAuthAPIView(APIView):
def user_rank_page(request, page=1):
ranks = UserProfile.objects.filter(submission_number__gt=0).order_by("-accepted_problem_number", "-submission_number")
ranks = UserProfile.objects.filter(submission_number__gt=0).order_by("-accepted_problem_number", "submission_number")
paginator = Paginator(ranks, 20)
try:
ranks = paginator.page(int(page))