Explorar o código

Merge pull request #969 from suriya/patch-1

Fix sub-category names construction
Justin Mayer %!s(int64=6) %!d(string=hai) anos
pai
achega
2372fc42f8
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      subcategory/subcategory.py

+ 1 - 2
subcategory/subcategory.py

@@ -62,8 +62,7 @@ def get_subcategories(generator, metadata):
     sub_list = []
     parent = category.name
     for subcategory in category_list:
-        subcategory.strip()
-        subcategory = parent + '/' + subcategory
+        subcategory = parent + '/' + subcategory.strip()
         sub_list.append(subcategory)
         parent = subcategory
     metadata['subcategories'] = sub_list