Skip to content

Commit

Permalink
not so very well tested fox for #267 (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen authored Feb 14, 2023
1 parent e020063 commit 2ee1ed5
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions caldav/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,16 +1058,13 @@ def search(

for o in objects:
if not o.data:
## TODO: all objects here should have data, unless the calendar server is breaking the caldav standard.
## Perhaps we should load missing data?
continue
components = o.vobject_instance.components()
for i in components:
if i.name in ("VEVENT", "VTODO"):
## Those recurrance properties should not be in the returns from the server,
## if they are present it indicates that server expand didn't work and we'll
## have to do it on the client side
recurrance_properties = ["exdate", "exrule", "rdate", "rrule"]
if any(key in recurrance_properties for key in i.contents):
o.expand_rrule(start, end)
component = o.icalendar_component
recurrance_properties = ["exdate", "exrule", "rdate", "rrule"]
if any(key in component for key in recurrance_properties):
o.expand_rrule(start, end)
if split_expanded:
objects_ = objects
objects = []
Expand Down

0 comments on commit 2ee1ed5

Please sign in to comment.