From e7b24d5d7ed238ba3ca0d9e696c4648308d90071 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Sat, 11 May 2024 16:36:29 +0200 Subject: [PATCH] - fix --- app/api/stuff.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api/stuff.py b/app/api/stuff.py index bfb6c8c..411b7ba 100644 --- a/app/api/stuff.py +++ b/app/api/stuff.py @@ -81,7 +81,6 @@ async def find_stuff_pool( try: stmt = await Stuff.find(db_session, name, compile_sql=True) result = await request.app.postgres_pool.fetchrow(str(stmt)) - result = dict(result) except SQLAlchemyError as ex: raise HTTPException( status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=repr(ex) @@ -91,7 +90,7 @@ async def find_stuff_pool( status_code=status.HTTP_404_NOT_FOUND, detail=f"Stuff with name {name} not found.", ) - return result + return dict(result) @router.delete("/{name}")