mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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
|
||||
while stack:
|
||||
component = stack.pop()
|
||||
stack.extend(component.subcomponents)
|
||||
|
||||
if component.name in ('VEVENT', 'VTODO', 'VJOURNAL', 'VCARD'):
|
||||
component['UID'] = new_uid
|
||||
changed = True
|
||||
else:
|
||||
stack.extend(component.subcomponents)
|
||||
|
||||
return changed
|
||||
|
|
|
|||
Loading…
Reference in a new issue