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