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 => {
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")