From 7d2b9764c3388ac75dfd0af10d149115c7c9ddfe Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Tue, 6 May 2025 21:18:18 -0600 Subject: [PATCH] no alert on focusTime, outOfOffice --- gcal.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcal.go b/gcal.go index 835a3da..2c42e20 100644 --- a/gcal.go +++ b/gcal.go @@ -7,6 +7,7 @@ import ( "net/http" "os" "path" + "slices" "time" "golang.org/x/oauth2" @@ -55,6 +56,9 @@ func (gcal *GCal) EventsToday(ctx context.Context) ([]Event, error) { if events.Items[i].Start.DateTime == "" { continue } + if slices.Contains([]string{"focusTime", "outOfOffice"}, events.Items[i].EventType) { + continue + } t, err := time.Parse(time.RFC3339, events.Items[i].Start.DateTime) if err != nil { return nil, err