mirror of
https://github.com/vbalien/voca.git
synced 2025-12-06 19:36:20 +09:00
feat: 전체 난이도
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user