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

from .models import Calendar, Event
from .calendar_api import calendar_api
def get_calendars_from_api(api: calendar_api):
ret = dict()
for calendar_name in api.ids.keys():
ret[calendar_name] = Calendar(api, calendar_name)
return ret