tanmaymittal / cruzcal

All your classes. One calendar file
http://cruzcal.com/
MIT License
2 stars 1 forks source link

Pablo/fix ics gen #118

Closed pablofgaeta closed 2 years ago

pablofgaeta commented 2 years ago

Fixed bugs in ICS calendar generation.

Added lecture section property (not lab section) so that we don't have course duplicates that can't be distinguished (e.g. CSE 131-01 and CSE 131-02 when the course is offered by two professors).

Modified timeStringToNum function to reflect minutes since 00:00.

Restructured lecture meeting times to reflect SlugSurvival API style:

lectures: {
  location: string
  recurrence: {
    days: Weekday[],
    time: {
      start: string,
      end: string
    }
  }
}[]