1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Consider collection type for simplified prefilters

This commit is contained in:
Unrud 2017-09-07 20:26:52 +02:00
parent 85d80fe9fc
commit d0891d17b9
2 changed files with 6 additions and 2 deletions

View file

@ -1420,7 +1420,8 @@ class Collection(BaseCollection):
return (self.get(href, verify_href=False) for href in self.list())
def get_all_filtered(self, filters):
tag, start, end, simple = xmlutils.simplify_prefilters(filters)
tag, start, end, simple = xmlutils.simplify_prefilters(
filters, collection_tag=self.get_meta("tag"))
if not tag:
# no filter
yield from ((item, simple) for item in self.get_all())