From 04422a193378de5416c5c9167b6f234ad788aa9c Mon Sep 17 00:00:00 2001 From: Laurent Date: Sat, 16 Mar 2024 15:15:41 +0100 Subject: [PATCH] Remove un-broadcasted matches --- tournaments/models/tournament.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 9f7ee81..10610dc 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -76,8 +76,7 @@ class Tournament(models.Model): for match in round.match_set.all(): matches.append(match) - if broadcasted: - matches = [m for m in matches if m.broadcasted==True] + matches = [m for m in matches if m.broadcasted==True] if not broadcasted: matches = [m for m in matches if len(m.team_scores.all()) > 0]