mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
wip
This commit is contained in:
11
scripts/parse-and-sort-data.ts
Normal file
11
scripts/parse-and-sort-data.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// @ts-nocheck
|
||||
|
||||
const data = await fetch(
|
||||
'https://api.neatqueue.com/api/history/1226193436521267223'
|
||||
).then((res) => res.json())
|
||||
|
||||
const parsed_and_sorted = data.data.toSorted((a, b) => {
|
||||
return a.game_num - b.game_num
|
||||
})
|
||||
|
||||
await Bun.write('./src/data.json', JSON.stringify(parsed_and_sorted, null, 2))
|
||||
Reference in New Issue
Block a user