Convert EventSettings, Match, and MatchResult models to use Bolt DB.

This commit is contained in:
Patrick Fairbank
2021-05-12 16:40:07 -07:00
parent ea4d56e665
commit 1d523c5f37
28 changed files with 274 additions and 375 deletions

View File

@@ -44,11 +44,11 @@
<script src="/static/js/match_review.js"></script>
<script>
var matchId = {{.Match.Id}};
var allianceResults = {};
matchResult = jQuery.parseJSON('{{.MatchResultJson}}');
allianceResults["red"] = {alliance: "red", team1: {{.Match.Red1}}, team2: {{.Match.Red2}},
team3: {{.Match.Red3}}, score: jQuery.parseJSON('{{.MatchResultJson.RedScoreJson}}')};
team3: {{.Match.Red3}}, score: matchResult.RedScore};
allianceResults["blue"] = {alliance: "blue", team1: {{.Match.Blue1}}, team2: {{.Match.Blue2}},
team3: {{.Match.Blue3}}, score: jQuery.parseJSON('{{.MatchResultJson.BlueScoreJson}}')};
team3: {{.Match.Blue3}}, score: matchResult.BlueScore};
renderResults("red");
renderResults("blue");
</script>