remove uneeded if
This commit is contained in:
@@ -47,11 +47,9 @@ async def api_usermanager_user(
|
|||||||
async def api_usermanager_users_create(data: CreateUserData):
|
async def api_usermanager_users_create(data: CreateUserData):
|
||||||
user = await create_usermanager_user(data)
|
user = await create_usermanager_user(data)
|
||||||
full = user.dict()
|
full = user.dict()
|
||||||
wallets: list[Wallet] = await get_usermanager_users_wallets(user.id)
|
full["wallets"] = [
|
||||||
if wallets:
|
wallet.dict() for wallet in await get_usermanager_users_wallets(user.id)
|
||||||
full["wallets"] = [
|
]
|
||||||
wallet.dict() for wallet in wallets
|
|
||||||
]
|
|
||||||
return full
|
return full
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user