bracket-feature
Laurent 11 months ago
parent 668ebddc4b
commit b7a844a32d
  1. 2
      tournaments/models/tournament.py

@ -688,7 +688,9 @@ class Tournament(models.Model):
# all started matches have ended, possibly
last_finished_match = self.last_finished_match()
print(f'last_finished_match = {last_finished_match.name}')
round_index = last_finished_match.round.index
print(f'round_index = {round_index}')
if round_index == 0:
return last_finished_match.round
else:

Loading…
Cancel
Save