Fix history_plot function with regard to category and account checks
Fix #31
This commit is contained in:
parent
c153000d3d
commit
7194039706
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ def history_plot(context, transactions, **kwargs):
|
|||
kwargs.setdefault("account", context.get("account"))
|
||||
kwargs.setdefault("category", context.get("category"))
|
||||
|
||||
if "category" in kwargs or "account" in kwargs:
|
||||
if kwargs.get("category") or kwargs.get("account"):
|
||||
kwargs["history"] = history(transactions.all())
|
||||
else:
|
||||
kwargs["history"] = history(transactions.exclude(category__budget=False))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue