1
0

chore: fullday -> invalid on zastupuje and fix bug
All checks were successful
Remote Deploy / deploy (push) Successful in 4s

This commit is contained in:
2026-01-04 17:40:04 +01:00
parent 6b383b1af4
commit 9d8db43cd4

View File

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