|
|
|
@ -55,8 +55,10 @@ class Round(TournamentSubModel): |
|
|
|
return name |
|
|
|
return name |
|
|
|
|
|
|
|
|
|
|
|
def ranking_matches(self, hide_empty_matches): |
|
|
|
def ranking_matches(self, hide_empty_matches): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
children_with_matches = self.children.prefetch_related('matches') |
|
|
|
matches = [] |
|
|
|
matches = [] |
|
|
|
for child in self.children.all(): |
|
|
|
for child in children_with_matches: |
|
|
|
|
|
|
|
|
|
|
|
child_matches = child.matches.all() |
|
|
|
child_matches = child.matches.all() |
|
|
|
if hide_empty_matches: |
|
|
|
if hide_empty_matches: |
|
|
|
|