|
|
|
@ -257,7 +257,6 @@ class Tournament(models.Model): |
|
|
|
|
|
|
|
|
|
|
|
def group_stage_match_group(self, group_stage, broadcasted, hide_empty_matches): |
|
|
|
def group_stage_match_group(self, group_stage, broadcasted, hide_empty_matches): |
|
|
|
matches = group_stage.match_set.all() |
|
|
|
matches = group_stage.match_set.all() |
|
|
|
if hide_empty_matches: |
|
|
|
|
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
|
|
|
|
|
|
|
|
if matches: |
|
|
|
if matches: |
|
|
|
@ -269,7 +268,6 @@ class Tournament(models.Model): |
|
|
|
groups = [] |
|
|
|
groups = [] |
|
|
|
|
|
|
|
|
|
|
|
matches = round.match_set.order_by('index').all() |
|
|
|
matches = round.match_set.order_by('index').all() |
|
|
|
if hide_empty_matches: |
|
|
|
|
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
|
|
|
|
|
|
|
|
if matches: |
|
|
|
if matches: |
|
|
|
@ -355,7 +353,6 @@ class Tournament(models.Model): |
|
|
|
for group_stage in self.groupstage_set.all(): |
|
|
|
for group_stage in self.groupstage_set.all(): |
|
|
|
matches.extend(group_stage.match_set.all()) |
|
|
|
matches.extend(group_stage.match_set.all()) |
|
|
|
|
|
|
|
|
|
|
|
if hide_empty_matches: |
|
|
|
|
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
|
|
|
|
|
|
|
|
return matches |
|
|
|
return matches |
|
|
|
|