From d525453dbbb9e601c68aa15129823d71c592c136 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Wed, 11 Dec 2024 11:46:14 +0200 Subject: [PATCH] fix: dict --- views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views.py b/views.py index 5200048..2a44414 100644 --- a/views.py +++ b/views.py @@ -19,7 +19,7 @@ def lncalendar_renderer(): @lncalendar_generic_router.get("/") async def index(request: Request, user: User = Depends(check_user_exists)): return lncalendar_renderer().TemplateResponse( - "lncalendar/index.html", {"request": request, "user": user.dict()} + "lncalendar/index.html", {"request": request, "user": user.json()} ) @@ -34,7 +34,7 @@ async def display(request: Request, schedule_id: str): "lncalendar/display.html", { "request": request, - "schedule": schedule.dict(), + "schedule": schedule.json(), "available_days": schedule.availabe_days, }, )