diff --git a/tournaments/templates/tournaments/broadcasted_summons.html b/tournaments/templates/tournaments/broadcasted_summons.html index 73b35bb..fee03bf 100644 --- a/tournaments/templates/tournaments/broadcasted_summons.html +++ b/tournaments/templates/tournaments/broadcasted_summons.html @@ -16,12 +16,14 @@ fetch('/tournament/{{ tournament.id }}/summons/json/') .then(res => res.json()) .then((data) => { - this.paginatedMatches = this.paginate(data, 16) + + let pageSize = 20 + this.paginatedMatches = this.paginate(data, pageSize) const splitGroups = []; this.paginatedMatches.forEach(group => { - const firstHalf = group.slice(0, 8); - const secondHalf = group.slice(8); + const firstHalf = group.slice(0, pageSize / 2); + const secondHalf = group.slice(pageSize / 2); splitGroups.push([firstHalf, secondHalf]); }); this.paginatedMatches = splitGroups; @@ -50,8 +52,8 @@