mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Show sent payments in descending time order (#432)
This commit is contained in:
parent
b1d8d133e6
commit
298d34efe8
1 changed files with 6 additions and 1 deletions
|
|
@ -899,7 +899,12 @@ class SqueakDb:
|
|||
|
||||
def get_sent_payments(self):
|
||||
""" Get all sent payments. """
|
||||
s = select([self.sent_payments])
|
||||
s = (
|
||||
select([self.sent_payments])
|
||||
.order_by(
|
||||
self.sent_payments.c.created.desc(),
|
||||
)
|
||||
)
|
||||
with self.get_connection() as connection:
|
||||
result = connection.execute(s)
|
||||
rows = result.fetchall()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue