mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 05:54:25 -04:00
(pl)(calendar) improve miastamaszerujące output
This commit is contained in:
parent
64ff43f2a3
commit
1c2f9ef5c2
@ -52,7 +52,11 @@ const fetchEvents = async () => {
|
||||
maxwidth: '100%',
|
||||
})
|
||||
}
|
||||
if (previous.length > events.length) { return; }
|
||||
if (previous.length > events.length) {
|
||||
console.error('stopping execution, number of events decreased')
|
||||
return;
|
||||
}
|
||||
console.log(`Saving to ${path}`);
|
||||
fs.writeFileSync(path, JSON.stringify(events, null, 4));
|
||||
|
||||
createEvents(
|
||||
@ -71,6 +75,7 @@ const fetchEvents = async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(`Saving to ${dir}/miastamaszerujace.ics`);
|
||||
fs.writeFileSync(`${dir}/miastamaszerujace.ics`, value);
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user