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:
parent
85d80fe9fc
commit
d0891d17b9
2 changed files with 6 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue