1
0
Эх сурвалжийг харах

Only search for filter that are direct children

Unrud 9 жил өмнө
parent
commit
4f6d2e8b58
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      radicale/xmlutils.py

+ 2 - 2
radicale/xmlutils.py

@@ -861,8 +861,8 @@ def report(base_prefix, path, xml_request, collection):
     else:
         hreferences = (path,)
     filters = (
-        root.findall(".//%s" % _tag("C", "filter")) +
-        root.findall(".//%s" % _tag("CR", "filter")))
+        root.findall("./%s" % _tag("C", "filter")) +
+        root.findall("./%s" % _tag("CR", "filter")))
 
     multistatus = ET.Element(_tag("D", "multistatus"))