Remove trailing =
from event ID, as google does not allow them
This commit is contained in:
parent
9fe3467fb0
commit
48b293521a
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user