Fix category splitting on import
This commit is contained in:
parent
f89167980b
commit
be6717c2a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue