Sort balance assertions by date

This commit is contained in:
RunasSudo 2023-01-04 18:03:15 +11:00
parent 5f25180d8a
commit 7a5a8ac881
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -111,7 +111,7 @@ def journal_edit_transaction():
@app.route('/balance-assertions') @app.route('/balance-assertions')
def balance_assertions(): def balance_assertions():
assertions = BalanceAssertion.query.all() assertions = db.session.scalars(db.select(BalanceAssertion).order_by(BalanceAssertion.dt)).all()
# Check assertion status # Check assertion status
transactions = all_transactions() transactions = all_transactions()