Show sent payments in descending time order (#432)

This commit is contained in:
Jonathan Zernik 2020-11-10 15:56:52 -05:00 committed by GitHub
parent b1d8d133e6
commit 298d34efe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()