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])