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
def extract(): search = EventSearch.from_config(config) return (result for result in search.results)