Skip to content

Commit

Permalink
Index teams by corner not by 0-index
Browse files Browse the repository at this point in the history
See PeterJCLaw/srcomp#27 for more details.
  • Loading branch information
prophile authored and PeterJCLaw committed Aug 9, 2023
1 parent d34be18 commit b149e7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/sr-competitor-schedule/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<template repeat="{{ corner in cornersList }}">
<td style="background-color: {{ arenas[arena].colour | arenaColour }}">
<span style="color: {{ corners[corner].colour }}">
{{ match.arenas[arena].teams[corner] || '—' }}
{{ match.arenas[arena].teams_by_corner[corner] || '—' }}
</span>
</td>
</template>
Expand Down
2 changes: 1 addition & 1 deletion components/sr-corner/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
}

if (this.match) {
var tla = this.match.teams[this.corner];
var tla = this.match.teams_by_corner[this.corner];
this.comp.api.getTeam(tla, function(team) {
if (team.image_url) {
this.$.main.style.backgroundImage = 'linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(' + team.image_url + ')';
Expand Down
2 changes: 1 addition & 1 deletion components/sr-staging-schedule/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<template repeat="{{ corner in cornersList }}">
<td style="background-color: {{ arenas[arena].colour | arenaColour }}">
<span style="color: {{ corners[corner].colour }}">
{{ match.arenas[arena].teams[corner] || '—' }}
{{ match.arenas[arena].teams_by_corner[corner] || '—' }}
</span>
</td>
</template>
Expand Down

0 comments on commit b149e7c

Please sign in to comment.