This commit is contained in:
parent
9fbf212754
commit
d023efe9e6
@ -154,6 +154,7 @@ async function updateAverages() {
|
||||
maxCombo: 0,
|
||||
};
|
||||
const rankedScores = scores.filter((score) => score.pp);
|
||||
const scoresWithAccuracy = scores.filter((score) => score.acc);
|
||||
scores.forEach((score) => {
|
||||
if (score.acc) {
|
||||
average.acc += score.acc;
|
||||
@ -175,7 +176,7 @@ async function updateAverages() {
|
||||
average.maxCombo += score.maxCombo;
|
||||
}
|
||||
});
|
||||
average.acc /= scores.length;
|
||||
average.acc /= scoresWithAccuracy.length;
|
||||
average.pp /= rankedScores.length;
|
||||
average.stars /= rankedScores.length;
|
||||
average.mistakes.badCuts /= scores.length;
|
||||
|
Loading…
Reference in New Issue
Block a user