diff --git a/scrape/parse/v1_v2.js b/scrape/parse/v1_v2.js index 35bfec2..94e1f87 100644 --- a/scrape/parse/v1_v2.js +++ b/scrape/parse/v1_v2.js @@ -226,12 +226,12 @@ export default async function parseV1V2(downloadedFilePath) { day.ABSENCE = day.ABSENCE.map(old => { if (old.type === "zastoupen") { - console.log("pepa") return { - teacher: old.teacher, - teacherCode: old.teacherCode, - type: "wholeDay", - hours: null + type: "invalid", + teacher: null, + teacherCode: null, + hours: null, + original: `za ${old.teacherCode.toUpperCase()} zastupuje ${old.zastupuje.teacherCode.toUpperCase()}` }; } return old; @@ -241,4 +241,4 @@ export default async function parseV1V2(downloadedFilePath) { fs.writeFileSync("db/v1.json", JSON.stringify(copy, null, 2)) } -parseV1V2("db/current.xlsx") +//parseV1V2("db/current.xlsx")