1
0

chore: I hate my life

This commit is contained in:
2026-04-15 17:07:56 +02:00
parent ed5e493912
commit 3094ec1501
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -24,3 +24,5 @@ export default async function parseThisShit(downloadedFilePath: string) {
await parseV1V2(workbook); await parseV1V2(workbook);
await parseV3(workbook, downloadedFilePath); await parseV3(workbook, downloadedFilePath);
} }
// parseThisShit("volume/db/current.xlsx")
+1 -3
View File
@@ -153,7 +153,7 @@ export default async function parseV3(workbook: Workbook, downloadedFilePath: st
// //
function getUpcomingSheets(workbook: ExcelJS.Workbook): ResolvedDay[] { 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 today = new Date();
const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate()); const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate());
@@ -423,5 +423,3 @@ function formatNowTime() {
now.getMinutes().toString().padStart(2, "0") now.getMinutes().toString().padStart(2, "0")
); );
} }
//parseV3("volume/db/current.xlsx")