mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
repair: Traverse all subcomponents
This commit is contained in:
parent
e172fa43f3
commit
f8b781a6d4
1 changed files with 3 additions and 2 deletions
|
|
@ -53,9 +53,10 @@ def reroll_uid(component):
|
||||||
changed = False
|
changed = False
|
||||||
while stack:
|
while stack:
|
||||||
component = stack.pop()
|
component = stack.pop()
|
||||||
|
stack.extend(component.subcomponents)
|
||||||
|
|
||||||
if component.name in ('VEVENT', 'VTODO', 'VJOURNAL', 'VCARD'):
|
if component.name in ('VEVENT', 'VTODO', 'VJOURNAL', 'VCARD'):
|
||||||
component['UID'] = new_uid
|
component['UID'] = new_uid
|
||||||
changed = True
|
changed = True
|
||||||
else:
|
|
||||||
stack.extend(component.subcomponents)
|
|
||||||
return changed
|
return changed
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue