for some reason i didn't put the correct offset here

This commit is contained in:
biglyderv 2025-02-01 05:52:18 -05:00
parent 26a7313626
commit 3383d2b679

View file

@ -183,7 +183,7 @@ async function siteCollector(user, path, site, useLimit, data2) {
if (site == 'darflen') {
p = `https://api.darflen.com/users/${user}/${path}/${i}`;
} else if (site == 'scratch') {
p = `https://api.scratch.mit.edu/users/${user}/${path}/?limit=40&offset=${i * 40}`;
p = `https://api.scratch.mit.edu/users/${user}/${path}/?limit=40&offset=${(i - 1) * 40}`;
} else {
throw 'That site is not supported.';
}