|
|
|
|
@ -704,7 +704,7 @@ class Tournament(models.Model): |
|
|
|
|
|
|
|
|
|
# all started matches have ended, possibly |
|
|
|
|
last_finished_match = self.last_finished_match() |
|
|
|
|
|
|
|
|
|
if last_finished_match: |
|
|
|
|
round = last_finished_match.round |
|
|
|
|
if round is None: # when the last finished match is in the group stage |
|
|
|
|
round = self.round_set.filter(parent__isnull=True).order_by('-index').first() |
|
|
|
|
@ -721,7 +721,6 @@ class Tournament(models.Model): |
|
|
|
|
return round |
|
|
|
|
else: |
|
|
|
|
return None |
|
|
|
|
else: |
|
|
|
|
return None |
|
|
|
|
|
|
|
|
|
def last_started_match(self): |
|
|
|
|
|