1
0
mirror of https://github.com/vbalien/voca.git synced 2025-12-06 19:36:20 +09:00

feat: 전체 난이도

This commit is contained in:
2022-02-26 03:46:33 +09:00
parent ed7163531b
commit 8377ee647a
3 changed files with 77 additions and 46798 deletions

View File

@@ -101,6 +101,7 @@ export async function makePdf(voca_list: Voca[]) {
}
export async function downloadVocaQuiz(levels: number[], day: number) {
if (levels.includes(10)) levels = [6, 7, 8, 9];
const json: JSONType = await (await fetch("/voca.json")).json();
const voca_list = json.data.filter((chunk) =>
levels.includes(chunk.level) && chunk.day === day