Skip to content

Commit

Permalink
Revert "fixed last 5 expense ordering"
Browse files Browse the repository at this point in the history
This reverts commit 0e2901c.
  • Loading branch information
eddyharrington committed May 22, 2020
1 parent 0e2901c commit a904705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendie_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def getTotalSpend_Week(userID):
# Get and return the users last 5 expenses
def getLastFiveExpenses(userID):
results = db.execute(
"SELECT description, category, expenseDate, payer, amount FROM expenses WHERE user_id = :usersID ORDER BY expenseDate DESC LIMIT 5", {"usersID": userID}).fetchall()
"SELECT description, category, expenseDate, payer, amount FROM expenses WHERE user_id = :usersID ORDER BY submitTime DESC LIMIT 5", {"usersID": userID}).fetchall()

lastFiveExpenses = convertSQLToDict(results)

Expand Down

0 comments on commit a904705

Please sign in to comment.