Fixed updatescores() (#1000)

* Fixes client side scoreboard updating (Closes #999)
selenium-screenshot-testing
Stitch (StormCTF) 2019-05-19 00:47:46 -05:00 committed by Kevin Chung
parent ac236e26ea
commit e6b865b61d
1 changed files with 4 additions and 4 deletions

View File

@ -6,13 +6,13 @@ function updatescores() {
for (var i = 0; i < teams.length; i++) { for (var i = 0; i < teams.length; i++) {
var row = var row =
"<tr>\n" + "<tr>\n" +
'<th scope="row" class="text-center">{0}</th>'.format(i + 1) + '<th scope="row" class="text-center">{0}</th>'.format(teams[i].pos) +
'<td><a href="{0}/team/{1}">{2}</a></td>'.format( '<td><a href="{0}/team/{1}">{2}</a></td>'.format(
script_root, script_root,
teams["standings"][i].id, teams[i].id,
htmlentities(teams["standings"][i].team) htmlentities(teams[i].name)
) + ) +
"<td>{0}</td>".format(teams["standings"][i].score) + "<td>{0}</td>".format(teams[i].score) +
"</tr>"; "</tr>";
table.append(row); table.append(row);
} }