We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ad75cb + e7b24d5 commit 253f775Copy full SHA for 253f775
app/api/stuff.py
@@ -81,7 +81,6 @@ async def find_stuff_pool(
81
try:
82
stmt = await Stuff.find(db_session, name, compile_sql=True)
83
result = await request.app.postgres_pool.fetchrow(str(stmt))
84
- result = dict(result)
85
except SQLAlchemyError as ex:
86
raise HTTPException(
87
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail=repr(ex)
@@ -91,7 +90,7 @@ async def find_stuff_pool(
91
90
status_code=status.HTTP_404_NOT_FOUND,
92
detail=f"Stuff with name {name} not found.",
93
)
94
- return result
+ return dict(result)
95
96
97
@router.delete("/{name}")
0 commit comments