diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index f644ebd..a1f7e21 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -221,7 +221,7 @@ class Tournament(models.Model): names = team_registration.team_names() stage = next_match.summon_stage_name() 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.sort(key=lambda s: s.date) @@ -727,11 +727,12 @@ class MatchGroup: self.matches = matches class TeamSummon: - def __init__(self, names, date, weight, stage, image): + def __init__(self, names, date, weight, stage, court, image): self.names = names self.date = date self.weight = weight self.stage = stage + self.court = court self.image = image def formatted_date(self): @@ -747,6 +748,7 @@ class TeamSummon: "date": self.formatted_date(), "weight": self.weight, "stage": self.stage, + "court": self.court, "image": self.image, } diff --git a/tournaments/templates/tournaments/broadcast/broadcasted_rankings.html b/tournaments/templates/tournaments/broadcast/broadcasted_rankings.html index ed4ef95..f749acc 100644 --- a/tournaments/templates/tournaments/broadcast/broadcasted_rankings.html +++ b/tournaments/templates/tournaments/broadcast/broadcasted_rankings.html @@ -16,7 +16,7 @@ .then(res => res.json()) .then((data) => { - let pageSize = 20 + let pageSize = 16 this.paginatedRankings = this.paginate(data, pageSize) const splitGroups = []; diff --git a/tournaments/templates/tournaments/broadcast/broadcasted_summon.html b/tournaments/templates/tournaments/broadcast/broadcasted_summon.html index 0a39dcc..e08dfda 100644 --- a/tournaments/templates/tournaments/broadcast/broadcasted_summon.html +++ b/tournaments/templates/tournaments/broadcast/broadcasted_summon.html @@ -7,13 +7,11 @@
- - {% if not tournament.hide_weight %} -