From 768913aacc605c6dba5d04756f2e6362dbc28128 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Sun, 8 Feb 2026 19:25:27 +0100 Subject: [PATCH] fix: Maybe fix --- scrape/parse/v1_v2.js | 2 +- scrape/parse/v3.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape/parse/v1_v2.js b/scrape/parse/v1_v2.js index 63daec5..04cdfe3 100644 --- a/scrape/parse/v1_v2.js +++ b/scrape/parse/v1_v2.js @@ -40,7 +40,7 @@ export default async function parseV1V2(downloadedFilePath) { const day = parseInt(match[2], 10); const month = parseInt(match[3], 10) - 1; - const year = parseInt(match[4], 10); + const year = match[4].length === 2 ? Number('20' + match[4]) : Number(match[4]); const sheetDate = new Date(year, month, day); if (sheetDate < today) continue; diff --git a/scrape/parse/v3.js b/scrape/parse/v3.js index e7402ef..b283567 100644 --- a/scrape/parse/v3.js +++ b/scrape/parse/v3.js @@ -68,7 +68,7 @@ function getUpcomingSheets(workbook) { const day = Number(match[2]); const month = Number(match[3]) - 1; - const year = Number(match[4]); + const year = match[4].length === 2 ? Number('20' + match[4]) : Number(match[4]); const sheetDate = new Date(year, month, day); if (sheetDate < todayMidnight) continue;