New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when trying to update #80
Comments
Hi, @yvangodard. Looks like source ics file events don't have 'LAST-MODIFIED' field, that used to compare with 'updated' field on google calendar events. I need to figure out how to handle such events, may be using 'CREATED' or 'DTSTART' fields, or just always overwrite it. |
Exactly, some events don't have LAST-MODIFIED field. For sure, always overwriting this type of events would be a solution. |
overwrite events without updated field (#80)
@yvangodard I just pushed a fix to develop branch, please help test again! |
try: poetry install it will install dependencies in virtual environment. poetry run sync-ics2gcal |
Thanks, I saw just after posting that I was trying to run without having install ... Traceback (most recent call last): |
use quotes, like this: start_from: '2018-04-03T13:23:25.000001Z' i will fix it |
Everything seems to work perfectly now! Great! 👍 |
Hi, after a first sync, I'm facing this issue when trying to re-sync :
Traceback (most recent call last):
File "/usr/local/bin/sync-ics2gcal", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync_calendar.py", line 49, in main
sync.prepare_sync(start)
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync.py", line 169, in prepare_sync
self._filter_events_to_update()
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync.py", line 79, in _filter_events_to_update
self.to_update = list(filter(filter_updated, self.to_update))
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync.py", line 75, in filter_updated
new_date = dateutil.parser.parse(new['updated'])
KeyError: 'updated'
What could be the reason ? Any idea to solve this issue ?
The text was updated successfully, but these errors were encountered: