Ver código fonte

Fix sub-category names construction

Suriya Subramanian 7 anos atrás
pai
commit
edad553f62
1 arquivos alterados com 1 adições e 2 exclusões
  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