Remove un-broadcasted matches

clubs
Laurent 2 years ago
parent 13c6a7a875
commit 04422a1933
  1. 1
      tournaments/models/tournament.py

@ -76,7 +76,6 @@ class Tournament(models.Model):
for match in round.match_set.all(): for match in round.match_set.all():
matches.append(match) 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: if not broadcasted:
matches = [m for m in matches if len(m.team_scores.all()) > 0] matches = [m for m in matches if len(m.team_scores.all()) > 0]

Loading…
Cancel
Save