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

Remove the Filtering non-recurring events by time-range logic

The tests pass 100% without this code and attempting to pre-filter
these events here is quite complex and throws up test failures in
multiple locations.

Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
David Greaves 2025-07-04 12:01:51 +01:00
parent 3afdc73bc6
commit 24b91e9569

View file

@ -260,19 +260,6 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
raise RuntimeError("Failed to filter item %r from %r: %s" %
(item.href, collection.path, e)) from e
# Filtering non-recurring events by time-range
if hasattr(item.vobject_item, "vevent_list") and len(item.vobject_item.vevent_list) != 1:
# Not sure how to loop over these vevents
raise ValueError("vobject has too many events")
if ((expand is not None) and
(time_range_element is not None) and
not hasattr(item.vobject_item.vevent,
'rrule')):
start, end = radicale_filter.time_range_timestamps(time_range_element)
istart, iend = item.vobject_item.time_range
if istart >= end or iend <= start:
continue
found_props = []
not_found_props = []