mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Convert EventSettings, Match, and MatchResult models to use Bolt DB.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user