示例#1
0
def transform(source_result, target_calendar):
    return EventTransformer(
        raw_data=source_result,
        raw_ics=EventSearch.get_event_ics(source_result),
        default_timezone=target_calendar.calendar_timezone,
        hash_key=target_calendar.calendar_id
    ).transformed
示例#2
0
def extract():
    search = EventSearch.from_config(config)
    return (result for result in search.results)