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 => {
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user