why is this thing so stupid
This commit is contained in:
parent
4d6917f39f
commit
b664acd1e2
1 changed files with 4 additions and 4 deletions
|
@ -4,8 +4,8 @@ let users = {};
|
||||||
|
|
||||||
let fetchData;
|
let fetchData;
|
||||||
|
|
||||||
async function genTree(treeId) {
|
async function genTree(treeId, tree2) {
|
||||||
fetchData = fetchData || await fetch(`https://scratch.mit.edu/projects/${treeId}/remixtree/bare/`)
|
fetchData = fetchData || await fetch(`https://scratch.mit.edu/projects/${tree2}/remixtree/bare/`)
|
||||||
.then(x => x.json());
|
.then(x => x.json());
|
||||||
|
|
||||||
entries.push(treeId)
|
entries.push(treeId)
|
||||||
|
@ -28,8 +28,8 @@ let doThings = false;
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
let latestData = await fetch("https://corsproxy.io/?https://api.scratch.mit.edu/studios/34493018/projects").then(x => x.json());
|
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(latestData[0].id, "1052168454"); // latest project
|
||||||
await genTree("654605857"); // tree bug here, unavoidable without jank
|
await genTree("654605857", "1052168454"); // tree bug here, unavoidable without jank
|
||||||
doThings = true;
|
doThings = true;
|
||||||
document.querySelector('.contributors').innerHTML = Object.keys(users)
|
document.querySelector('.contributors').innerHTML = Object.keys(users)
|
||||||
.sort((x, y) => users[y] - users[x])
|
.sort((x, y) => users[y] - users[x])
|
||||||
|
|
Loading…
Reference in a new issue