mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 12:28:13 +03:00
feat: more sieglinde general work
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import GetTableData from "../fetch-tables";
|
||||
import { ChunkifyPromiseAll, GetScoresForMD5 } from "../util";
|
||||
|
||||
export default async function FetchAllTableScores() {
|
||||
const tableInfo = await GetTableData();
|
||||
|
||||
const promises = [];
|
||||
|
||||
for (const table of tableInfo) {
|
||||
for (const chart of table.charts) {
|
||||
promises.push(() => GetScoresForMD5(chart.md5));
|
||||
}
|
||||
}
|
||||
|
||||
await ChunkifyPromiseAll(promises, 100);
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
void FetchAllTableScores();
|
||||
}
|
||||
Reference in New Issue
Block a user