Fix: context Parameter für get_google_service Funktion

- context als Parameter an get_google_service() übergeben
- Behebt 'name context is not defined' Fehler
This commit is contained in:
root
2025-10-22 19:06:07 +00:00
parent 76a236ac37
commit 805a1cce3e
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ config = {
SCOPES = ['https://www.googleapis.com/auth/calendar']
async def get_google_service():
async def get_google_service(context):
"""Initialisiert Google Calendar API Service"""
creds = None
@@ -236,7 +236,7 @@ async def handler(req, context):
context.logger.info(f"Starte Advoware Calendar Sync, full_content: {full_content}")
# Google Calendar Service initialisieren
service = await get_google_service()
service = await get_google_service(context)
if not service:
context.logger.warning("Google Calendar Service nicht verfügbar. Sync wird übersprungen.")
return {