for some reason i didn't put the correct offset here
This commit is contained in:
parent
26a7313626
commit
3383d2b679
1 changed files with 1 additions and 1 deletions
2
site.js
2
site.js
|
@ -183,7 +183,7 @@ async function siteCollector(user, path, site, useLimit, data2) {
|
||||||
if (site == 'darflen') {
|
if (site == 'darflen') {
|
||||||
p = `https://api.darflen.com/users/${user}/${path}/${i}`;
|
p = `https://api.darflen.com/users/${user}/${path}/${i}`;
|
||||||
} else if (site == 'scratch') {
|
} 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 {
|
} else {
|
||||||
throw 'That site is not supported.';
|
throw 'That site is not supported.';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue