General rank for friends
This commit is contained in:
parent
5577484b58
commit
3ba270bd07
2 changed files with 24 additions and 2 deletions
|
@ -661,7 +661,7 @@ def get_contest_ranking_list(request, contest, participation=None, ranking_list=
|
|||
problems = list(contest.contest_problems.select_related('problem').defer('problem__description').order_by('order'))
|
||||
|
||||
users = ranker(ranking_list(contest, problems), key=attrgetter('points', 'cumtime', 'tiebreaker'))
|
||||
|
||||
|
||||
if show_current_virtual:
|
||||
if participation is None and request.user.is_authenticated:
|
||||
participation = request.profile.current_contest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue