mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-07 18:30:54 +00:00
catch time-filter on level 0
This commit is contained in:
parent
b756e21c31
commit
18a61f209d
1 changed files with 7 additions and 0 deletions
|
@ -622,7 +622,14 @@ def simplify_prefilters(filters: Iterable[ET.Element], collection_tag: str
|
|||
continue
|
||||
simple &= len(col_filter) <= 1
|
||||
for comp_filter in col_filter:
|
||||
logger.debug("TRACE/ITEM/FILTER/simplify_prefilters: filter.tag=%s simple=%s", comp_filter.tag, simple)
|
||||
if comp_filter.tag == xmlutils.make_clark("C:time-range") and simple is True:
|
||||
# time-filter found on level 0
|
||||
start, end = time_range_timestamps(comp_filter)
|
||||
logger.debug("TRACE/ITEM/FILTER/simplify_prefilters: found time-filter on level 0 start=%r(%d) end=%r(%d) simple=%s", format_ut(start), start, format_ut(end), end, simple)
|
||||
return None, start, end, simple
|
||||
if comp_filter.tag != xmlutils.make_clark("C:comp-filter"):
|
||||
logger.debug("TRACE/ITEM/FILTER/simplify_prefilters: no comp-filter on level 0")
|
||||
simple = False
|
||||
continue
|
||||
tag = comp_filter.get("name", "").upper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue