chore: I hate my life
This commit is contained in:
@@ -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
@@ -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")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user