scores with acc stuff
All checks were successful
deploy / deploy (push) Successful in 27s

This commit is contained in:
Lee 2023-10-30 16:55:45 +00:00
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;