From 42ed074f1e7898aa76d6c8a305db6e222b7c23f3 Mon Sep 17 00:00:00 2001 From: PeithonKing Date: Thu, 19 Sep 2024 23:27:13 +0530 Subject: [PATCH] slight change in ics --- scripts/main.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/main.js b/scripts/main.js index 9c088cb..9caf983 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -225,10 +225,6 @@ function formatted_time_string(day, time) { function generateICS() { var cal = ics(); - // cal.addEvent(subject, description, location, begin, end, rrule = {}); - // cal.download(filename); - - console.log("ICS file generated"); console.log(occupiedSlotsGlob); // list of selected course codes @@ -249,7 +245,7 @@ function generateICS() { let [courseName, courseNick, courseSlot] = Object.values(courses[courseCode]); console.log(`courseName=${courseName},\ncourseNick=${courseNick},\ncourseSlot=${courseSlot},\ncourseCode=${courseCode}`); - let subject = `${courseNick}: ${courseName}`; + let subject = `${courseCode}: ${courseName}`; let description = `Class for ${courseNick} at slot ${courseSlot}`; slots[courseSlot].forEach(slot => { let [day, start, end] = slot;