From 3dabbb612f614b800fab335b23f13984c8c5bfed Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 9 Jan 2022 01:05:42 +0800 Subject: [PATCH] update --- calendar/ics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/ics.go b/calendar/ics.go index ffd0982..da258c0 100644 --- a/calendar/ics.go +++ b/calendar/ics.go @@ -55,7 +55,7 @@ func init() { func ICS(cal_id string, from time.Time, to time.Time) (string, error) { cal := &Calendar{} - store.DB.Preload("Events", "start > ? and end < ?", from, to). + store.DB.Preload("Events", `"start" > ? and "end" < ?`, from, to). First(cal, "id = ?", cal_id) buf := &bytes.Buffer{} if err := tmpl.Execute(buf, cal); err != nil {