فهرست منبع

Stop iterating when a component is found

Unrud 9 سال پیش
والد
کامیت
a05cca563a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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: