Accept a Null category

Null categories can have regex and additional options defined in the
configuration yaml.
This commit is contained in:
Luís Murta 2021-07-05 23:38:42 +01:00
parent c0cc8d5563
commit 5f0fe38ba8
Signed by: satprog
GPG Key ID: DDF2EFC6179009DC

View File

@ -35,7 +35,7 @@ groups = {
] ]
for group in set(category.group for category in categories.values()) for group in set(category.group for category in categories.values())
} }
categories["Null"] = Options() categories.setdefault("Null", Options())
def categorize_data(db: DBManager): def categorize_data(db: DBManager):