You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
255 B

  1. from .models import Calendar, Event
  2. from .calendar_api import calendar_api
  3. def get_calendars_from_api(api: calendar_api):
  4. ret = dict()
  5. for calendar_name in api.ids.keys():
  6. ret[calendar_name] = Calendar(api, calendar_name)
  7. return ret