feat: more sieglinde general work

This commit is contained in:
zkldi
2022-08-20 13:03:41 +01:00
parent d806bca2e5
commit ea7ef026f0
6 changed files with 45 additions and 26 deletions
+20
View File
@@ -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();
}