Skip to content

Fix/filter cancelled events#362

Open
sharukh010 wants to merge 2 commits intosteipete:mainfrom
sharukh010:fix/filter-cancelled-events
Open

Fix/filter cancelled events#362
sharukh010 wants to merge 2 commits intosteipete:mainfrom
sharukh010:fix/filter-cancelled-events

Conversation

@sharukh010
Copy link

1. Fix: Filter cancelled events from calendar list

gog calendar list was returning cancelled events because ShowDeleted
was not explicitly set in the API call.

Added .ShowDeleted(false) to calendarEventsListCall, ensuring the
Google Calendar API filters out cancelled events before returning results.

2. Fix: Bool/string type mismatch in contacts (contacts_crud.go)

Variables given and org were incorrectly declared as bool but are
used as strings throughout the function (e.g. passed to strings.TrimSpace
and contact name/org setters).

Changed declarations from bool to string to match their actual usage.

Fixes #358

@econosopher
Copy link

Love it.

@salmonumbrella
Copy link
Contributor

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calendar list returns cancelled/deleted events

3 participants