This commit is contained in:
dni ⚡ 2024-10-16 11:06:43 +02:00
commit 9a1cc1b2cd
No known key found for this signature in database
GPG key ID: D1F416F29AD26E87
3 changed files with 379 additions and 346 deletions

View file

@ -43,7 +43,7 @@ async def get_withdraw_link(link_id: str, num=0) -> Optional[WithdrawLink]:
link: WithdrawLink = await db.fetchone(
"SELECT * FROM withdraw.withdraw_link WHERE id = :id",
{"id": link_id},
WithdrawLink, # type: ignore
WithdrawLink,
)
if not link:
return None
@ -56,14 +56,11 @@ async def get_withdraw_link_by_hash(unique_hash: str, num=0) -> Optional[Withdra
link = await db.fetchone(
"SELECT * FROM withdraw.withdraw_link WHERE unique_hash = :hash",
{"hash": unique_hash},
WithdrawLink, # type: ignore
WithdrawLink,
)
if not link:
return None
if not link:
return None
link.number = num
return link