mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-16 01:13:47 +00:00
fix: user with lower AC rate ranks higher
This commit is contained in:
parent
116377dc70
commit
f8e58c5bbc
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user