Skip to content

Commit

Permalink
fix: dict
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Dec 11, 2024
1 parent c9c8ca2 commit d525453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
)


Expand All @@ -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,
},
)

0 comments on commit d525453

Please sign in to comment.