This commit is contained in:
depreciate 2019-02-24 04:11:57 +10:30
parent 3a6e52209f
commit fce1e87a63

View File

@ -227,7 +227,12 @@ function loadScoresPage(type, mode) {
} }
r.scores.forEach(function(v, idx){ r.scores.forEach(function(v, idx){
scoreStore[v.id] = v; scoreStore[v.id] = v;
var scoreRank = getRank(mode, v.mods, v.accuracy, v.count_300, v.count_100, v.count_50, v.count_miss); if (v.completed == 0){
var scoreRank = "failed";
}else{
var scoreRank = getRank(mode, v.mods, v.accuracy, v.count_300, v.count_100, v.count_50, v.count_miss);
}
table.append($("<tr class='new score-row' data-scoreid='" + v.id + "' />").append( table.append($("<tr class='new score-row' data-scoreid='" + v.id + "' />").append(
$( $(
"<td><img src='/static/ranking-icons/" + scoreRank + ".svg' class='score rank' alt='" + scoreRank + "'> " + "<td><img src='/static/ranking-icons/" + scoreRank + ".svg' class='score rank' alt='" + scoreRank + "'> " +