mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
The item's rrule and time_range are in the vobject_item
Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
parent
371d5057de
commit
3afdc73bc6
1 changed files with 8 additions and 2 deletions
|
@ -261,9 +261,15 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
|
|||
(item.href, collection.path, e)) from e
|
||||
|
||||
# Filtering non-recurring events by time-range
|
||||
if (expand is not None) and (time_range_element is not None) and not hasattr(item, 'rrule'):
|
||||
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.time_range
|
||||
istart, iend = item.vobject_item.time_range
|
||||
if istart >= end or iend <= start:
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue