skip 999_999 on fallback data
This commit is contained in:
parent
a0dd1b4601
commit
9d2a26fa07
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user