skip 999_999 on fallback data
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 46s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m10s

This commit is contained in:
Lee 2024-10-20 14:01:47 +01:00
parent a0dd1b4601
commit 9d2a26fa07

View File

@ -139,6 +139,10 @@ export async function getScoreSaberPlayerFromToken(
let daysAgo = 0; // Start from current day
for (let i = playerRankHistory.length - 1; i >= 0; i--) {
const rank = playerRankHistory[i];
if (rank == 999_999) {
continue;
}
const date = getMidnightAlignedDate(getDaysAgoDate(daysAgo));
daysAgo += 1;