Update announcer display for 2016.

This commit is contained in:
Patrick Fairbank
2016-08-09 21:32:13 -07:00
parent 260f0281df
commit e9ceb6d79b
2 changed files with 4 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ func getOfficialTeamInfo(teamId int) (*Team, error) {
if tbaTeam.TeamNumber == 0 {
team = Team{Id: teamId}
} else {
robotName, err := getRobotNameFromTba(teamId, 2015)
robotName, err := getRobotNameFromTba(teamId, time.Now().Year())
if err != nil {
return nil, err
}

View File

@@ -92,8 +92,9 @@
<h4>Fouls</h4>
{{"{{#each fouls}}"}}
<div class="row">
<div class="col-lg-3 col-lg-offset-1">Team {{"{{TeamId}}"}}</div>
<div class="col-lg-3 col-lg-offset-1">{{"{{Rule}}"}}</div>
<div class="col-lg-3 col-lg-offset-1">{{"{{#if IsTechnical}}"}}Tech {{"{{/if}}"}}Foul</div>
<div class="col-lg-3">Team {{"{{TeamId}}"}}</div>
<div class="col-lg-3">{{"{{Rule}}"}}</div>
</div>
{{"{{/each}}"}}
<h4>Cards</h4>