From c8d18cf24830cf442cb67787db60f642446077da Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Sat, 7 Feb 2026 12:20:22 +0100 Subject: [PATCH] fix: V3 parser and minor changes --- scrape/parse/v3.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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")