Sort transactions #2
This commit is contained in:
parent
2471e49b59
commit
81c946bd52
@ -67,7 +67,7 @@ def get_transaction():
|
||||
return_transactions = []
|
||||
|
||||
# Get all transactions
|
||||
transactions = db.session.query(Transaction).filter_by(email=email).all().order_by(Transaction.time.desc())
|
||||
transactions = db.session.query(Transaction).filter_by(email=email).order_by(Transaction.time.desc()).all()
|
||||
|
||||
# Iterate over transactions and add them to return_transactions
|
||||
if transactions is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user