From b664acd1e22e44ae8925c2b521c068f52059cfc4 Mon Sep 17 00:00:00 2001 From: onezplpl Date: Fri, 2 Aug 2024 20:33:26 -0400 Subject: [PATCH] why is this thing so stupid --- js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index d2a0c67..533889e 100644 --- a/js/app.js +++ b/js/app.js @@ -4,8 +4,8 @@ let users = {}; let fetchData; -async function genTree(treeId) { - fetchData = fetchData || await fetch(`https://scratch.mit.edu/projects/${treeId}/remixtree/bare/`) +async function genTree(treeId, tree2) { + fetchData = fetchData || await fetch(`https://scratch.mit.edu/projects/${tree2}/remixtree/bare/`) .then(x => x.json()); entries.push(treeId) @@ -28,8 +28,8 @@ let doThings = false; async function main() { let latestData = await fetch("https://corsproxy.io/?https://api.scratch.mit.edu/studios/34493018/projects").then(x => x.json()); - await genTree(latestData[0].id); // latest project - await genTree("654605857"); // tree bug here, unavoidable without jank + await genTree(latestData[0].id, "1052168454"); // latest project + await genTree("654605857", "1052168454"); // tree bug here, unavoidable without jank doThings = true; document.querySelector('.contributors').innerHTML = Object.keys(users) .sort((x, y) => users[y] - users[x])