diff --git a/src/app/tools/ratings/page.tsx b/src/app/tools/ratings/page.tsx index 9b0b1326b..5c7878baa 100644 --- a/src/app/tools/ratings/page.tsx +++ b/src/app/tools/ratings/page.tsx @@ -241,27 +241,27 @@ export default function Page() { size: number, ): Promise { const { neighbors } = await getRatingsNeighbors(region, id, size, true); - const radius = Math.round(size / 2); + // const radius = Math.round(size / 2); - const targetPosition = Object.entries(players[region][season]).find( - ([, player]) => id === player.id, - )?.[0]; + // const targetPosition = Object.entries(players[region][season]).find( + // ([, player]) => id === player.id, + // )?.[0]; - if (targetPosition !== undefined) { - let isMissing = false; - const targetPositionAsNumber = parseInt(targetPosition); + // if (targetPosition !== undefined) { + // let isMissing = false; + // const targetPositionAsNumber = parseInt(targetPosition); - for ( - let position = Math.max(0, targetPositionAsNumber - radius); - position <= targetPositionAsNumber + radius; - position++ - ) { - isMissing = !(position in players[region][season]); - if (isMissing) break; - } + // for ( + // let position = Math.max(0, targetPositionAsNumber - radius); + // position <= targetPositionAsNumber + radius; + // position++ + // ) { + // isMissing = !(position in players[region][season]); + // if (isMissing) break; + // } - if (!isMissing) return []; - } + // if (!isMissing) return []; + // } usePlayersCache.setState( produce((draft: PlayersCache) => {