Skip to content

Commit

Permalink
slight change in ics
Browse files Browse the repository at this point in the history
  • Loading branch information
PeithonKing committed Sep 19, 2024
1 parent 6687eeb commit 42ed074
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 42ed074

Please sign in to comment.