

def leaderboard(request, cpk):
    context = {
        
    }
    template = 'contest/leaderboard.html'
    con = get_object_or_404(models.Contest, pk=cpk)
    players = [i for i in models.Profile.objects.filter(contest=con)]
    players.sort(key=(lambda x: x.score), reverse=True)
    con['players'] = players
    context['contest'] = get_object_or_404(models.Contest, pk=cpk)
    return render(request, template, context)

dataset/ETHPy150Open theSage21/openJudge/openjudge/contest/views.py leaderboard/VarMisuse@77/94 `context`->`con`