Add filtering of CalDAV query results
Currently, `QueryCalendarObjects()` simply returns all objects. Now that `caldav.Filter()` is available upstream, use it to actually filter out events that do not match the query.
This commit is contained in:
parent
04a422523a
commit
486a5285db
@ -582,9 +582,7 @@ func (b *filesystemBackend) QueryCalendarObjects(ctx context.Context, query *cal
|
||||
return result, err
|
||||
}
|
||||
|
||||
return result, nil
|
||||
// TODO implement:
|
||||
//return caldav.Filter(query, result)
|
||||
return caldav.Filter(query, result)
|
||||
}
|
||||
|
||||
func (b *filesystemBackend) PutCalendarObject(ctx context.Context, objPath string, calendar *ical.Calendar, opts *caldav.PutCalendarObjectOptions) (loc string, err error) {
|
||||
|
Loading…
Reference in New Issue
Block a user