1
0

feat: Last update
All checks were successful
Remote Deploy / deploy (push) Successful in 6s

This commit is contained in:
2025-10-21 19:35:45 +02:00
parent 0a0b9ab436
commit a942818247
2 changed files with 7 additions and 3 deletions

View File

@@ -166,6 +166,9 @@ export default async function parseThisShit(downloadedFilePath) {
finalIndex++;
}
const currentDate = new Date();
const formattedDate = currentDate.getHours().padStart(2, "0") + ":" + currentDate.getMinutes().padStart(2, "0");
const data = {
schedule: final,
props: upcomingSheets.map((str) => {
@@ -194,6 +197,9 @@ export default async function parseThisShit(downloadedFilePath) {
priprava: isPriprava,
};
}),
status: {
lastUpdated: formattedDate,
}
}
fs.writeFileSync("db/current.json", JSON.stringify(data));