Only search for filter that are direct children

This commit is contained in:
Unrud 2017-03-18 04:59:27 +01:00
parent a05cca563a
commit 4f6d2e8b58

View File

@ -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"))