Explorar o código

Stop iterating when a component is found

Unrud %!s(int64=9) %!d(string=hai) anos
pai
achega
a05cca563a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      radicale/xmlutils.py

+ 1 - 0
radicale/xmlutils.py

@@ -180,6 +180,7 @@ def _prop_match(item, filter_):
         for component in item.components():
             if component.name in ("VTODO", "VEVENT", "VJOURNAL"):
                 vobject_item = component
+                break
     else:
         vobject_item = item.item
     if filter_length == 0: