fix hide empty matches

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

@ -292,7 +292,8 @@ class Tournament(models.Model):
if matches: if matches:
round_matches = round.match_set.all() round_matches = round.match_set.all()
round_matches = [m for m in round_matches if m.should_appear()] if hide_empty_matches:
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)
groups.append(group) groups.append(group)

Loading…
Cancel
Save