From be6717c2a0ac47ba961543ddec8597433165f46f Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Mon, 14 Mar 2022 12:03:21 +0100 Subject: [PATCH] Fix category splitting on import --- froide_govplan/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/froide_govplan/utils.py b/froide_govplan/utils.py index 8c9160e..e530de8 100644 --- a/froide_govplan/utils.py +++ b/froide_govplan/utils.py @@ -49,7 +49,7 @@ class PlanImporter(object): def handle_categories(self, plan, category_name): categories = [ - x.strip() for x in re.split(r" & | und ", category_name) if x.strip() + x.strip() for x in re.split(r", | & | und ", category_name) if x.strip() ] self.make_section(category_name, "-".join(categories), categories) if categories: