From 60bdff43e7b602ba498dd27a1cb77ccc934157b9 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 20 Dec 2022 15:32:34 +0100 Subject: [PATCH] Remove non-budget categories for plot --- nummi/plot/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nummi/plot/views.py b/nummi/plot/views.py index 781ab89..e01aecb 100644 --- a/nummi/plot/views.py +++ b/nummi/plot/views.py @@ -45,7 +45,7 @@ def timeline(request): @login_required def categories(request): - _categories = Category.objects.all() + _categories = Category.objects.filter(budget=True) fig, ax = plt.subplots(figsize=(8, _categories.count() / 4)) ax.barh(