Fix category splitting on import

This commit is contained in:
Stefan Wehrmeyer 2022-03-14 12:03:21 +01:00
parent f89167980b
commit be6717c2a0

View file

@ -49,7 +49,7 @@ class PlanImporter(object):
def handle_categories(self, plan, category_name): def handle_categories(self, plan, category_name):
categories = [ 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) self.make_section(category_name, "-".join(categories), categories)
if categories: if categories: