From 5f0fe38ba8b3e178eb9179b242a09d7dc92a9b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Murta?= Date: Mon, 5 Jul 2021 23:38:42 +0100 Subject: [PATCH] Accept a Null category Null categories can have regex and additional options defined in the configuration yaml. --- pfbudget/categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfbudget/categories.py b/pfbudget/categories.py index eba5854..128df97 100644 --- a/pfbudget/categories.py +++ b/pfbudget/categories.py @@ -35,7 +35,7 @@ groups = { ] for group in set(category.group for category in categories.values()) } -categories["Null"] = Options() +categories.setdefault("Null", Options()) def categorize_data(db: DBManager):