formatting

This commit is contained in:
dni ⚡ 2022-12-20 14:23:02 +01:00
parent 36ae851a8d
commit c2df13bf24

View File

@ -32,7 +32,11 @@ async def api_usermanager_users(
return [user.dict() for user in await get_usermanager_users(user_id)]
@usermanager_ext.get("/api/v1/users/{user_id}", status_code=HTTPStatus.OK, dependencies=[Depends(get_key_type)])
@usermanager_ext.get(
"/api/v1/users/{user_id}",
status_code=HTTPStatus.OK,
dependencies=[Depends(get_key_type)],
)
async def api_usermanager_user(user_id):
user = await get_usermanager_user(user_id)
return user.dict() if user else None