- 
                Notifications
    You must be signed in to change notification settings 
- Fork 442
Open
Description
Opening this thread to separate from other items.
Running this code results in the error shown below:
builder = ExperimentalQuery(protocol=account.protocol)
schedule = account.schedule()
calendars = schedule.list_calendars()
calendar = calendars[1]
query = builder.select(
    "subject",
    "body",
)
start = datetime.now()
end = datetime.now() + timedelta(weeks=1)
query = query & (builder.greater_equal("start", start) & builder.less_equal("ent", end))
events = calendar.get_events(query=query)Exception has occurred: AttributeError
'CompositeFilter' object has no attribute '_filters'
  File "/HADev/Hassio/dev-config/O365/calendar.py", line 1799, in get_events
    for query_data in query._filters:
                      ^^^^^^^^^^^^^^
  File "/HADev/Hassio/dev-config/bash_o365_query.py", line 57, in <module>
    events = calendar.get_events(query=query)
AttributeError: 'CompositeFilter' object has no attribute '_filters'
Calendar shouldn't really be accessing _filters, but it is using it to extract start and end date. Can't easily see the resolution.
Metadata
Metadata
Assignees
Labels
No labels