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