library/calendar_sync.py aktualisiert
This commit is contained in:
@ -58,9 +58,7 @@ def sync_ics_to_caldav(module):
|
|||||||
results = {'added': [], 'updated': [], 'removed': []}
|
results = {'added': [], 'updated': [], 'removed': []}
|
||||||
|
|
||||||
for vevent in ics_events:
|
for vevent in ics_events:
|
||||||
if not hasattr(vevent, 'uid') or not vevent.uid.value:
|
uid = str(vevent.uid.value) # Korrektur hier
|
||||||
continue # Events ohne UID überspringen
|
|
||||||
uid = str(vevent.uid.value)
|
|
||||||
ical_data = vevent.serialize()
|
ical_data = vevent.serialize()
|
||||||
|
|
||||||
if uid not in existing_events:
|
if uid not in existing_events:
|
||||||
|
|||||||
Reference in New Issue
Block a user