1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2026-06-27 05:46:12 +03:00
2020-02-20 17:37:31 +03:00
parent 3ecd6695cf
commit d146eec7ae
4 changed files with 39 additions and 5 deletions
+1 -2
View File
@@ -34,14 +34,13 @@ def main():
calendarId = config['calendar']['google_id']
ics_filepath = config['calendar']['source']
srv_acc_file = config['service_account']
start = get_start_date(config['start_from'])
converter = CalendarConverter()
converter.load(ics_filepath)
service = GoogleCalendarService.from_srv_acc_file(srv_acc_file)
service = GoogleCalendarService.from_config(config)
gcalendar = GoogleCalendar(service, calendarId)
sync = CalendarSync(gcalendar, converter)