浏览代码

Fix sub-category names construction

Suriya Subramanian 7 年之前
父节点
当前提交
edad553f62
共有 1 个文件被更改,包括 1 次插入2 次删除
  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