Skip to content

Commit

Permalink
Order withdraw links by open_time. New first (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
supiiik authored Sep 24, 2023
1 parent b2fcdff commit 8cd5490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def get_withdraw_links(wallet_ids: Union[str, List[str]]) -> List[Withdraw

q = ",".join(["?"] * len(wallet_ids))
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]

Expand Down

0 comments on commit 8cd5490

Please sign in to comment.