From 72362abaf72eae08b6261ab73c96aa0e1a72c025 Mon Sep 17 00:00:00 2001 From: quaduzi Date: Fri, 30 Jun 2023 14:29:02 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20=D1=81=D0=B5=D1=80=D0=B2=D0=B8=D1=81=D0=B0=20=D0=B2=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=20=D0=B8=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index c69ac9f..3819c43 100644 --- a/src/main.py +++ b/src/main.py @@ -212,7 +212,7 @@ def mark_busy_calendar_slot_by_id( description: str | None = None, service: Resource = Depends(get_calendar_service) ): - event = get_slot_by_id(slot_id=slot_id) + event = get_slot_by_id(slot_id=slot_id, service=service) if event.summary != TITLE_FREE: raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail="Slot is busy") @@ -232,7 +232,7 @@ def mark_free_calendar_slot_by_id( slot_id: str, service: Resource = Depends(get_calendar_service) ): - event = get_slot_by_id(slot_id=slot_id) + event = get_slot_by_id(slot_id=slot_id, service=service) event.summary = TITLE_FREE event.colorId = COLOR_FREE