mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 07:28:24 +00:00
overwrite events without updated
field
This commit is contained in:
parent
b09136747f
commit
693c6c4359
@ -72,6 +72,8 @@ class CalendarSync:
|
||||
|
||||
def filter_updated(event_tuple: EventTuple) -> bool:
|
||||
new, old = event_tuple
|
||||
if 'updated' not in new or 'updated' not in old:
|
||||
return True
|
||||
new_date = dateutil.parser.parse(new['updated'])
|
||||
old_date = dateutil.parser.parse(old['updated'])
|
||||
return new_date > old_date
|
||||
|
Loading…
Reference in New Issue
Block a user