rc4-1
This commit is contained in:
parent
d8eafa3e13
commit
9a1cc1b2cd
3 changed files with 379 additions and 346 deletions
7
crud.py
7
crud.py
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue