Skip to content

Commit

Permalink
Add back unlisted users in contests; #842
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Mar 16, 2019
1 parent a7e77d2 commit 0111ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/views/contests.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def base_contest_ranking_list(contest, problems, queryset):


def contest_ranking_list(contest, problems):
return base_contest_ranking_list(contest, problems, contest.users.filter(virtual=0)
return base_contest_ranking_list(contest, problems, contest.users.filter(virtual=0, user__is_unlisted=False)
.prefetch_related('user__organizations')
.order_by('-score', 'cumtime'))

Expand Down

0 comments on commit 0111ee1

Please sign in to comment.