add club auto broadcast

tz
Raz 1 year ago
parent 188967ee1c
commit 688db607a0
  1. 7
      tournaments/models/tournament.py

@ -499,26 +499,19 @@ class Tournament(models.Model):
matches.extend(first_round.get_matches_recursive(True))
else:
current_round = self.round_to_show()
print("current_round", current_round)
if current_round:
# Add full matches from the next rounds
print("Add full matches from the next rounds")
next_round = self.round_for_index(current_round.index - 1)
if next_round:
print("next_round", next_round)
matches.extend(next_round.get_matches_recursive(True))
# Add matches from the previous round or group_stages
print("Add matches from the previous round or group_stages")
previous_round = self.round_for_index(current_round.index + 1)
if previous_round:
print("previous_round", previous_round)
print('test 1')
matches.extend(current_round.get_matches_recursive(True))
matches.extend(previous_round.get_matches_recursive(True))
else:
print("else")
matches.extend(current_round.all_matches(True))
group_stages = self.live_group_stages()

Loading…
Cancel
Save