Skip to content

Commit

Permalink
Un-hardcode the sync period to allow CLI input
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeff committed Sep 1, 2021
1 parent d424c64 commit 6860794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcalsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main(sourceAccountName, sourceCalendarId, targetAccountName, targetCalendarI
sourceCalendar = CalendarService(sourceAccountName).getCalendar(sourceCalendarId)
targetCalendar = CalendarService(targetAccountName).getCalendar(targetCalendarId)

targetCalendar.copyAllEventsFrom(sourceCalendar, DatePeriod.weeks(1), copySensibleData, colorId, skipMatching)
targetCalendar.copyAllEventsFrom(sourceCalendar, datePeriod, copySensibleData, colorId, skipMatching)

print('Events copied successfully')

Expand Down

0 comments on commit 6860794

Please sign in to comment.