feat: smaller fetching size

This commit is contained in:
TrèsAbhi authored and GitHub committed 2023-11-20 13:32:53 -06:00
1 parent bb1c0c7625
commit 396b48d017
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ const server = argv.find((arg) => arg.startsWith('--region='))?.split('=')[1];
if (!server) throw new Error('Region parameter not specified');
const NEIGHBORS = 1024;
const NEIGHBORS = 2 ** 8;
const PLAYERS = await patientFetchJSON<RatingsInfo>(
`https://${server}.wotblitz.com/en/api/rating-leaderboards/season/`,
).then((data) => (data.detail === undefined ? data.count : undefined));