This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user