1
0

fix: Absence keys
All checks were successful
Remote Deploy / deploy (push) Successful in 5s

This commit is contained in:
2026-02-10 21:53:55 +01:00
parent d4815d39ca
commit 138fa17e54
2 changed files with 9 additions and 9 deletions

View File

@@ -176,12 +176,11 @@ export default async function parseV1V2(downloadedFilePath) {
}
})
let i = 0;
const absenceRange = new Set(["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "L"])
for (const absenceKeyCur of allAbsenceKeys) {
if (i >= 10) {
break; // stop once 10 items are added
}
i++;
if (!absenceRange.has(absenceKeyCur.substring(0, 1))) {
break;
};
const cell = currentSheet.getCell(absenceKeyCur);
const value = (cell.value || "").toString().trim();