mirror of https://github.com/JohnHammond/CTFd.git
Fixed updatescores() (#1000)
* Fixes client side scoreboard updating (Closes #999)selenium-screenshot-testing
parent
ac236e26ea
commit
e6b865b61d
|
@ -6,13 +6,13 @@ function updatescores() {
|
|||
for (var i = 0; i < teams.length; i++) {
|
||||
var row =
|
||||
"<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(
|
||||
script_root,
|
||||
teams["standings"][i].id,
|
||||
htmlentities(teams["standings"][i].team)
|
||||
teams[i].id,
|
||||
htmlentities(teams[i].name)
|
||||
) +
|
||||
"<td>{0}</td>".format(teams["standings"][i].score) +
|
||||
"<td>{0}</td>".format(teams[i].score) +
|
||||
"</tr>";
|
||||
table.append(row);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue