rc5 3
This commit is contained in:
parent
8394e56f5d
commit
cab62b5c00
3 changed files with 30 additions and 29 deletions
5
crud.py
5
crud.py
|
|
@ -78,14 +78,15 @@ async def get_withdraw_links(
|
|||
WithdrawLink, # type: ignore
|
||||
)
|
||||
|
||||
total = await db.fetchone(
|
||||
result = await db.execute(
|
||||
f"""
|
||||
SELECT COUNT(*) as total FROM withdraw.withdraw_link
|
||||
WHERE wallet IN ({q})
|
||||
"""
|
||||
)
|
||||
total = await result.mappings().first()
|
||||
|
||||
return links, total["total"]
|
||||
return links, total.total
|
||||
|
||||
|
||||
async def remove_unique_withdraw_link(link: WithdrawLink, unique_hash: str) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue