Switch to b16encode, since b32encode is not b32hexencode
This commit is contained in:
parent
6d5321491e
commit
4f28ea21fe
@ -1,6 +1,6 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import os.path
|
import os.path
|
||||||
from base64 import b32encode
|
from base64 import b16encode
|
||||||
|
|
||||||
from google.auth.transport.requests import Request
|
from google.auth.transport.requests import Request
|
||||||
from google.oauth2.credentials import Credentials
|
from google.oauth2.credentials import Credentials
|
||||||
@ -47,7 +47,8 @@ class CalendarService:
|
|||||||
def insert_or_update_event(
|
def insert_or_update_event(
|
||||||
self, calendar_id: str, id: str, title: str, start: datetime, end: datetime
|
self, calendar_id: str, id: str, title: str, start: datetime, end: datetime
|
||||||
):
|
):
|
||||||
event_id = b32encode(id.encode("ascii")).decode("ascii").lower().rstrip("=")
|
event_id = b16encode(id.encode("ascii")).decode("ascii").lower().rstrip("=")
|
||||||
|
print(event_id)
|
||||||
event = {
|
event = {
|
||||||
"id": event_id,
|
"id": event_id,
|
||||||
"summary": title,
|
"summary": title,
|
||||||
|
Loading…
Reference in New Issue
Block a user