i am stupid

This commit is contained in:
biglyderv 2024-09-30 05:26:50 -04:00
parent fbc859dae0
commit 1ce94d25b1
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -8,7 +8,7 @@ function getCookie(name) {
async function downloadUser(user) { async function downloadUser(user) {
for (let i = 0; ; i++) { for (let i = 0; ; i++) {
let fetchReq = await fetch(`https://api.scratch.mit.edu/users/${user}/followers/?limit=40&offset=${i * 40}`); let fetchReq = await fetch(`https://api.scratch.mit.edu/users/${user}/following/?limit=40&offset=${i * 40}`);
let fetchJson = await fetchReq.json(); let fetchJson = await fetchReq.json();
if (fetchJson.length < 1) break; if (fetchJson.length < 1) break;
tree = [...tree, ...fetchJson]; tree = [...tree, ...fetchJson];