|
|
|
|
@ -278,7 +278,7 @@ class Tournament(BaseModel): |
|
|
|
|
def team_summons(self): |
|
|
|
|
summons = [] |
|
|
|
|
if self.supposedly_in_progress() and self.end_date is None: |
|
|
|
|
print('>>> team_summons supposedly_in_progress') |
|
|
|
|
# print('>>> team_summons supposedly_in_progress') |
|
|
|
|
for team in self.teams(False): |
|
|
|
|
names = team.names |
|
|
|
|
stage = team.stage |
|
|
|
|
@ -286,7 +286,7 @@ class Tournament(BaseModel): |
|
|
|
|
summon = TeamSummon(team.team_registration.id, names, team.date, weight, stage, "", team.image, self.day_duration) |
|
|
|
|
summons.append(summon) |
|
|
|
|
else: |
|
|
|
|
print('>>> team_summons') |
|
|
|
|
# print('>>> team_summons') |
|
|
|
|
for team_registration in self.team_registrations.all(): |
|
|
|
|
if team_registration.is_valid_for_summon(): |
|
|
|
|
next_match = team_registration.next_match() |
|
|
|
|
|