diff --git a/scrape/parse/v3.js b/scrape/parse/v3.js index bbee069..54ae0bb 100644 --- a/scrape/parse/v3.js +++ b/scrape/parse/v3.js @@ -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")