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;
|
||||
|
||||
let result = text;
|
||||
if (cell.fill.fgColor.argb === "FFFFFF00") {
|
||||
result += "\n(bude upřesněno)";
|
||||
}
|
||||
return result;
|
||||
return {
|
||||
text,
|
||||
backgroundColor: cell.fill.fgColor.argb === undefined ? undefined : `#${cell.fill.fgColor.argb}`,
|
||||
willBeSpecified: cell.fill.fgColor.argb === "FFFFFF00" ? true : undefined,
|
||||
};
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
@@ -298,4 +298,4 @@ function formatNowTime() {
|
||||
);
|
||||
}
|
||||
|
||||
parseV3("db/current.xlsx")
|
||||
// parseV3("db/current.xlsx")
|
||||
|
||||
Reference in New Issue
Block a user