Needed to add await to one of the functions.
This commit is contained in:
@@ -44,7 +44,7 @@ async def object_detail_page(
|
|||||||
current_user: HttpUser = Depends(get_current_http_user)
|
current_user: HttpUser = Depends(get_current_http_user)
|
||||||
):
|
):
|
||||||
# Call the existing metadata API function
|
# Call the existing metadata API function
|
||||||
obj = api_get_metadata(uuid=uuid, db=db, current_user=current_user)
|
obj = await api_get_metadata(uuid=uuid, db=db, current_user=current_user)
|
||||||
|
|
||||||
return templates.TemplateResponse(
|
return templates.TemplateResponse(
|
||||||
"object_detail.html",
|
"object_detail.html",
|
||||||
|
|||||||
Reference in New Issue
Block a user