fix hide empty matches

clubs
Razmig Sarkissian 1 year ago
parent a24064658a
commit 79a88264e6
  1. 1
      tournaments/models/tournament.py

@ -292,6 +292,7 @@ class Tournament(models.Model):
if matches: if matches:
round_matches = round.match_set.all() round_matches = round.match_set.all()
if hide_empty_matches:
round_matches = [m for m in round_matches if m.should_appear()] round_matches = [m for m in round_matches if m.should_appear()]
group = self.create_match_group(round.name(), round_matches, broadcasted) group = self.create_match_group(round.name(), round_matches, broadcasted)

Loading…
Cancel
Save