mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 14:17:21 +01:00
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
1 changed files with 1 additions and 3 deletions
|
|
@ -582,9 +582,7 @@ func (b *filesystemBackend) QueryCalendarObjects(ctx context.Context, query *cal
|
||||||
return result, err
|
return result, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return result, nil
|
return caldav.Filter(query, result)
|
||||||
// TODO implement:
|
|
||||||
//return caldav.Filter(query, result)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *filesystemBackend) PutCalendarObject(ctx context.Context, objPath string, calendar *ical.Calendar, opts *caldav.PutCalendarObjectOptions) (loc string, err error) {
|
func (b *filesystemBackend) PutCalendarObject(ctx context.Context, objPath string, calendar *ical.Calendar, opts *caldav.PutCalendarObjectOptions) (loc string, err error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue