Landing Page: Sort transactions newest first
This commit is contained in:
@@ -21,7 +21,7 @@ async def landing_page(
|
||||
focused_account = account
|
||||
transactions += account.transactions
|
||||
|
||||
transactions = sorted(transactions, key=lambda t: t.timestamp)
|
||||
transactions = sorted(transactions, key=lambda t: t.timestamp, reverse=True)
|
||||
return templates.TemplateResponse(
|
||||
"index.html.jinja",
|
||||
context={
|
||||
|
||||
Reference in New Issue
Block a user