icssc / AntAlmanac

A course exploration and scheduling tool for UCI Anteaters
https://antalmanac.com
MIT License
58 stars 73 forks source link

Added handling for custom events download #1015

Closed vinnyho closed 1 day ago

vinnyho commented 3 weeks ago

Summary

I added const customEventIDs = new Set();, where it'll be populated with const customEventID = event.customEventID;. Each Custom Event object was created with a specific ID, even if it was on multiple days it'll be the same, so then when it maps to download, it shouldn't repeat the custom events. This is a custom event created for Tuesday and Wednesday.

SUMMARY:FIX TEST
DTSTAMP:20241027T205447Z
DTSTART;TZID=America/Los_Angeles:20241001T103000
DTEND;TZID=America/Los_Angeles:20241001T153000
RRULE:FREQ=WEEKLY;BYDAY=TU,WE;INTERVAL=1;COUNT=20
END:VEVENT
END:VCALENDAR       

This is what it appears like on Google Calendar

Closes #1010