From 3094ec1501c754a51d3fb5af41c1adcf475f2123 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Wed, 15 Apr 2026 17:07:56 +0200 Subject: [PATCH] chore: I hate my life --- scrape/parse.ts | 2 ++ scrape/parse/v3.ts | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scrape/parse.ts b/scrape/parse.ts index 6f0394a..2d569f5 100644 --- a/scrape/parse.ts +++ b/scrape/parse.ts @@ -24,3 +24,5 @@ export default async function parseThisShit(downloadedFilePath: string) { await parseV1V2(workbook); await parseV3(workbook, downloadedFilePath); } + +// parseThisShit("volume/db/current.xlsx") diff --git a/scrape/parse/v3.ts b/scrape/parse/v3.ts index 2877bb8..ca99a7d 100644 --- a/scrape/parse/v3.ts +++ b/scrape/parse/v3.ts @@ -153,7 +153,7 @@ export default async function parseV3(workbook: Workbook, downloadedFilePath: st // function getUpcomingSheets(workbook: ExcelJS.Workbook): ResolvedDay[] { - const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.+\s*(\d{1,2})\.\s*(\d{4}|\d{2})/i; + const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.+\s*(\d{1,2})\.+\s*(\d{4}|\d{2})/i; const today = new Date(); const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate()); @@ -423,5 +423,3 @@ function formatNowTime() { now.getMinutes().toString().padStart(2, "0") ); } - -//parseV3("volume/db/current.xlsx")