From 48b293521a6ab411320f124ddd1d731bcc985d02 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 27 Dec 2021 23:45:45 -0500 Subject: [PATCH] Remove trailing `=` from event ID, as google does not allow them --- google_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google_calendar.py b/google_calendar.py index 5500982..aa2cde8 100644 --- a/google_calendar.py +++ b/google_calendar.py @@ -45,7 +45,7 @@ def get_service(creds: Credentials) -> Resource: def insert_or_update_event( service: Resource, id: str, title: str, start: datetime, end: datetime ): - event_id = b32hexencode(id.encode("ascii")).decode("ascii").lower() + event_id = b32hexencode(id.encode("ascii")).decode("ascii").lower().rstrip("=") event = { "id": event_id, "summary": title,