Skip to content

Commit

Permalink
limit bank transactions instead of showing everything
Browse files Browse the repository at this point in the history
  • Loading branch information
spudooli committed Jun 5, 2023
1 parent f0c5230 commit 4b3262b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spudoolicom/money.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def money():
hardware = "{:,}".format(hardware[0])
cur.close()

# Get Bunnings Censtellation purchases
# Get Bunnings Constellation purchases
cur = db.mysql.connection.cursor()
cur.execute("SELECT count(id) id FROM `budget` WHERE `party` LIKE '%9470%'")
bunningsconstellation = cur.fetchone()
Expand Down
6 changes: 3 additions & 3 deletions spudoolicom/recently.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def recently(recentlydate):
cur.close()

cur = db.mysql.connection.cursor()
#cur.execute("SELECT date, category, amount, party FROM budget where date = %s and category in ('Hardware', 'Petrol', 'Supermarket', 'Electricity', 'Coffee', 'Sky TV', 'Investments', 'Beer and Wine', 'Phone and Internet', 'Lunch', 'Garden Centre', 'Car Repairs and Parts', 'Hobbies', 'Insurance', 'Dairy and Small Grocery', 'Takeaways', 'Doctor', 'Clothing' )", (recentlydate,) )
cur.execute(
"SELECT date, category, amount, party FROM budget where date = %s", (recentlydate,))
cur.execute("SELECT date, category, amount, party FROM budget where date = %s and category in ('Hardware', 'Petrol', 'Supermarket', 'Electricity', 'Coffee', 'Sky TV', 'Investments', 'Beer and Wine', 'Phone and Internet', 'Lunch', 'Garden Centre', 'Car Repairs and Parts', 'Hobbies', 'Insurance', 'Dairy and Small Grocery', 'Takeaways', 'Doctor', 'Clothing' )", (recentlydate,) )
# cur.execute(
# "SELECT date, category, amount, party FROM budget where date = %s", (recentlydate,))
budgetdata = cur.fetchall()
cur.close()

Expand Down

0 comments on commit 4b3262b

Please sign in to comment.