|
|
|
@ -221,7 +221,7 @@ class Tournament(models.Model): |
|
|
|
names = team_registration.team_names() |
|
|
|
names = team_registration.team_names() |
|
|
|
stage = next_match.summon_stage_name() |
|
|
|
stage = next_match.summon_stage_name() |
|
|
|
weight = team_registration.weight |
|
|
|
weight = team_registration.weight |
|
|
|
summon = TeamSummon(names, next_match.start_date, weight, stage, team_registration.logo) |
|
|
|
summon = TeamSummon(names, next_match.start_date, weight, stage, next_match.court_name(next_match.court_index), team_registration.logo) |
|
|
|
summons.append(summon) |
|
|
|
summons.append(summon) |
|
|
|
|
|
|
|
|
|
|
|
summons.sort(key=lambda s: s.date) |
|
|
|
summons.sort(key=lambda s: s.date) |
|
|
|
@ -727,11 +727,12 @@ class MatchGroup: |
|
|
|
self.matches = matches |
|
|
|
self.matches = matches |
|
|
|
|
|
|
|
|
|
|
|
class TeamSummon: |
|
|
|
class TeamSummon: |
|
|
|
def __init__(self, names, date, weight, stage, image): |
|
|
|
def __init__(self, names, date, weight, stage, court, image): |
|
|
|
self.names = names |
|
|
|
self.names = names |
|
|
|
self.date = date |
|
|
|
self.date = date |
|
|
|
self.weight = weight |
|
|
|
self.weight = weight |
|
|
|
self.stage = stage |
|
|
|
self.stage = stage |
|
|
|
|
|
|
|
self.court = court |
|
|
|
self.image = image |
|
|
|
self.image = image |
|
|
|
|
|
|
|
|
|
|
|
def formatted_date(self): |
|
|
|
def formatted_date(self): |
|
|
|
@ -747,6 +748,7 @@ class TeamSummon: |
|
|
|
"date": self.formatted_date(), |
|
|
|
"date": self.formatted_date(), |
|
|
|
"weight": self.weight, |
|
|
|
"weight": self.weight, |
|
|
|
"stage": self.stage, |
|
|
|
"stage": self.stage, |
|
|
|
|
|
|
|
"court": self.court, |
|
|
|
"image": self.image, |
|
|
|
"image": self.image, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|