Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
AutumnVN committed Oct 2, 2024
1 parent 394e520 commit 84f0583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ interface MostPlayedBeatmap {
console.log('Getting most played beatmapsets');

while (neededToDownloadBeatmapsets.length < amount) {
const res = await fetch(`https://chino.pages.dev/osuapiv2/users/${playerId}/beatmapsets/most_played?mode=osu&offset=${i}&limit=100`).then(res => res.json()) as MostPlayedBeatmap[];
const res = await fetch(`https://chino.pages.dev/osuapiv2/users/${playerId}/beatmapsets/most_played?offset=${i}&limit=100`).then(res => res.json()) as MostPlayedBeatmap[];
if (!res.length) break;

for (const { beatmap, beatmapset } of res) {
Expand Down

0 comments on commit 84f0583

Please sign in to comment.