Remove non-budget categories for plot

This commit is contained in:
Edgar P. Burkhart 2022-12-20 15:32:34 +01:00
parent 396ef9ead5
commit 60bdff43e7
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def timeline(request):
@login_required @login_required
def categories(request): def categories(request):
_categories = Category.objects.all() _categories = Category.objects.filter(budget=True)
fig, ax = plt.subplots(figsize=(8, _categories.count() / 4)) fig, ax = plt.subplots(figsize=(8, _categories.count() / 4))
ax.barh( ax.barh(