|
|
|
|
@ -186,6 +186,24 @@ def tv_teams_tournament(request, tournament_id): |
|
|
|
|
} |
|
|
|
|
return HttpResponse(template.render(context, request)) |
|
|
|
|
|
|
|
|
|
def ranking_tournament_id(request, club_name, tournament_id): |
|
|
|
|
tournament = get_object_or_404(Tournament, pk=tournament_id) |
|
|
|
|
template = loader.get_template('scores/ranks.html') |
|
|
|
|
context = { |
|
|
|
|
'tournament': tournament, |
|
|
|
|
} |
|
|
|
|
return HttpResponse(template.render(context, request)) |
|
|
|
|
|
|
|
|
|
def tv_ranking_tournament_id(request, club_name, tournament_id): |
|
|
|
|
tournament = get_object_or_404(Tournament, pk=tournament_id) |
|
|
|
|
template = loader.get_template('scores/ranks.html') |
|
|
|
|
context = { |
|
|
|
|
'tournament': tournament, |
|
|
|
|
'tv': True, |
|
|
|
|
} |
|
|
|
|
return HttpResponse(template.render(context, request)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def tv_ranking(request, club_name, tournament_shortname): |
|
|
|
|
club = get_object_or_404(Club, name__iexact=club_name.lower()) |
|
|
|
|
tournament = Tournament.objects.filter(club_id=club.id, shortname__iexact=tournament_shortname.lower()).first() |
|
|
|
|
|