mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Stop iterating when a component is found
This commit is contained in:
parent
c027b68b4f
commit
a05cca563a
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ def _prop_match(item, filter_):
|
||||||
for component in item.components():
|
for component in item.components():
|
||||||
if component.name in ("VTODO", "VEVENT", "VJOURNAL"):
|
if component.name in ("VTODO", "VEVENT", "VJOURNAL"):
|
||||||
vobject_item = component
|
vobject_item = component
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
vobject_item = item.item
|
vobject_item = item.item
|
||||||
if filter_length == 0:
|
if filter_length == 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue