Skip to content

Commit

Permalink
Fix bug in /budgets view where "Spending By Budget, Per Calendar Mont…
Browse files Browse the repository at this point in the history
…h" chart was showing only inactive budgets instead of only active budgets
  • Loading branch information
jantman committed Mar 10, 2018
1 parent e5b2329 commit 6330b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Unreleased Changes
* Change ``OFXTransaction.unreconciled`` to filter out OFXTransactions with any of the ``is_*`` set to True.

* Upgrade chromedriver in TravisCI builds from 2.33 to 2.36, to fix failing acceptance tests caused by Ubuntu upgrade from Chrome 64 to 65.

* Fix bug in ``/budgets`` view where "Spending By Budget, Per Calendar Month" chart was showing only inactive budgets instead of only active budgets.

0.7.1 (2018-01-10)
------------------
Expand Down
2 changes: 1 addition & 1 deletion biweeklybudget/flaskapp/views/budgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _by_month(self):
budgets_present = set()
for t in db_session.query(Transaction).filter(
Transaction.budget_transactions.any(
BudgetTransaction.budget.has(is_active=False)
BudgetTransaction.budget.has(is_active=True)
),
Transaction.date.__le__(dt_now)
).all():
Expand Down

0 comments on commit 6330b52

Please sign in to comment.