This commit is contained in:
dni ⚡ 2024-10-18 09:52:23 +02:00
commit cab62b5c00
No known key found for this signature in database
GPG key ID: D1F416F29AD26E87
3 changed files with 30 additions and 29 deletions

View file

@ -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: