Order withdraw links by open_time. New first (#8)
This commit is contained in:
parent
b2fcdffc0d
commit
8cd549042d
1 changed files with 1 additions and 1 deletions
2
crud.py
2
crud.py
|
|
@ -92,7 +92,7 @@ async def get_withdraw_links(wallet_ids: Union[str, List[str]]) -> List[Withdraw
|
||||||
|
|
||||||
q = ",".join(["?"] * len(wallet_ids))
|
q = ",".join(["?"] * len(wallet_ids))
|
||||||
rows = await db.fetchall(
|
rows = await db.fetchall(
|
||||||
f"SELECT * FROM withdraw.withdraw_link WHERE wallet IN ({q})", (*wallet_ids,)
|
f"SELECT * FROM withdraw.withdraw_link WHERE wallet IN ({q}) ORDER BY open_time DESC", (*wallet_ids,)
|
||||||
)
|
)
|
||||||
return [WithdrawLink(**row) for row in rows]
|
return [WithdrawLink(**row) for row in rows]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue