fix: V3 parser and minor changes
All checks were successful
Remote Deploy / deploy (push) Successful in 7s
All checks were successful
Remote Deploy / deploy (push) Successful in 7s
This commit is contained in:
@@ -179,11 +179,11 @@ function parseLessonCell(cell) {
|
|||||||
|
|
||||||
if (!text || cleanupRegex.test(text) || !cell.fill?.fgColor) return null;
|
if (!text || cleanupRegex.test(text) || !cell.fill?.fgColor) return null;
|
||||||
|
|
||||||
let result = text;
|
return {
|
||||||
if (cell.fill.fgColor.argb === "FFFFFF00") {
|
text,
|
||||||
result += "\n(bude upřesněno)";
|
backgroundColor: cell.fill.fgColor.argb === undefined ? undefined : `#${cell.fill.fgColor.argb}`,
|
||||||
}
|
willBeSpecified: cell.fill.fgColor.argb === "FFFFFF00" ? true : undefined,
|
||||||
return result;
|
};
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -298,4 +298,4 @@ function formatNowTime() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
parseV3("db/current.xlsx")
|
// parseV3("db/current.xlsx")
|
||||||
|
|||||||
Reference in New Issue
Block a user