chore: fullday -> invalid on zastupuje and fix bug
All checks were successful
Remote Deploy / deploy (push) Successful in 4s
All checks were successful
Remote Deploy / deploy (push) Successful in 4s
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user