From 7e9b370cca4b252515ef291524ed4642d10dc0ac Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 25 Mar 2024 18:43:59 +0100 Subject: [PATCH] Fix round sorting --- tournaments/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/views.py b/tournaments/views.py index 3b3b1ac..47f3e5d 100644 --- a/tournaments/views.py +++ b/tournaments/views.py @@ -42,7 +42,7 @@ def tournament(request, tournament_id): group_stage_id = request.GET.get('group_stage') live_matches = list(tournament.live_matches(False, group_stage_id, round_id)) - rounds = tournament.round_set.filter(loser=None).order_by('index') + rounds = tournament.round_set.filter(loser=None).order_by('-index') group_stages = tournament.groupstage_set.order_by('index') return render(request, 'tournaments/matches.html', { 'tournament': tournament,