Compare commits
No commits in common. "5a00247eef462e27ff89fb1f4d8eb85da4dad698" and "d7de5841d056036b0c8e8567a5c62a692adfab82" have entirely different histories.
5a00247eef
...
d7de5841d0
27
server.js
27
server.js
|
@ -103,33 +103,6 @@ app.get('/:filename', (req, res) => {
|
||||||
// Store the merged calendar URL in a file
|
// Store the merged calendar URL in a file
|
||||||
const mergedCalendarUrlFile = 'merged_calendar_url.txt';
|
const mergedCalendarUrlFile = 'merged_calendar_url.txt';
|
||||||
|
|
||||||
|
|
||||||
//calendarData object to store calendar data
|
|
||||||
let calendarData = {
|
|
||||||
linkGroups: []
|
|
||||||
};
|
|
||||||
|
|
||||||
// Function to add a new link group
|
|
||||||
function addLinkGroup(name) {
|
|
||||||
const newLinkGroup = {
|
|
||||||
name,
|
|
||||||
links: []
|
|
||||||
};
|
|
||||||
calendarData.linkGroups.push(newLinkGroup);
|
|
||||||
return newLinkGroup;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to add a new link to a link group
|
|
||||||
function addLinkToGroup(linkGroup, url, prefix, overrideSummary) {
|
|
||||||
const newLink = {
|
|
||||||
url,
|
|
||||||
prefix,
|
|
||||||
overrideSummary
|
|
||||||
};
|
|
||||||
linkGroup.links.push(newLink);
|
|
||||||
return newLink;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to update the merged calendar
|
// Function to update the merged calendar
|
||||||
async function updateMergedCalendar(){
|
async function updateMergedCalendar(){
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue