From c2955e9be750288af13036dbd407696f9146644e Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Wed, 29 May 2024 17:49:51 +0200 Subject: [PATCH] fix disabled stuff --- tournaments/models/tournament.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index eca59f9..779d0a1 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -271,10 +271,14 @@ class Tournament(models.Model): matches = [m for m in matches if m.should_appear()] if matches: - group = self.create_match_group(round.name(), round.match_set.all(), broadcasted) + round_matches = round.match_set.all() + round_matches = [m for m in round_matches if m.should_appear()] + + group = self.create_match_group(round.name(), round_matches, broadcasted) groups.append(group) ranking_matches = round.ranking_matches(hide_empty_matches) + ranking_matches = [m for m in ranking_matches if m.should_appear()] if len(ranking_matches) > 0: group = self.create_match_group('Matchs de classement', ranking_matches, broadcasted) groups.append(group)