|
|
|
@ -112,6 +112,9 @@ class Round(TournamentSubModel): |
|
|
|
return True |
|
|
|
return True |
|
|
|
|
|
|
|
|
|
|
|
def prepare_match_group(self, next_round, parent_round, loser_final, double_butterfly_mode, secondHalf): |
|
|
|
def prepare_match_group(self, next_round, parent_round, loser_final, double_butterfly_mode, secondHalf): |
|
|
|
|
|
|
|
short_names = double_butterfly_mode |
|
|
|
|
|
|
|
if double_butterfly_mode and self.tournament.rounds.count() < 3: |
|
|
|
|
|
|
|
short_names = False |
|
|
|
matches = self.matches.filter(disabled=False).order_by('index') |
|
|
|
matches = self.matches.filter(disabled=False).order_by('index') |
|
|
|
if len(matches) == 0: |
|
|
|
if len(matches) == 0: |
|
|
|
return None |
|
|
|
return None |
|
|
|
@ -211,7 +214,7 @@ class Round(TournamentSubModel): |
|
|
|
matches=first_half_matches, |
|
|
|
matches=first_half_matches, |
|
|
|
round_id=self.id, |
|
|
|
round_id=self.id, |
|
|
|
round_index=self.index, |
|
|
|
round_index=self.index, |
|
|
|
short_names=double_butterfly_mode |
|
|
|
short_names=short_names |
|
|
|
) |
|
|
|
) |
|
|
|
return match_group |
|
|
|
return match_group |
|
|
|
|
|
|
|
|
|
|
|
|