Remove trailing = from event ID, as google does not allow them

This commit is contained in:
Adam Goldsmith 2021-12-27 23:45:45 -05:00
parent 9fe3467fb0
commit 48b293521a

View File

@ -45,7 +45,7 @@ def get_service(creds: Credentials) -> Resource:
def insert_or_update_event( def insert_or_update_event(
service: Resource, id: str, title: str, start: datetime, end: datetime 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 = { event = {
"id": event_id, "id": event_id,
"summary": title, "summary": title,