File “D:\Python\hatemwin\quetcate\module\xuly.py”, line 24, in INDEX
self.InsertCategoryToSSG(category)
TypeError: InsertCategoryToSSG() takes exactly 1 argument (2 given)
Đoạn code của em bên dưới bị cho ra lỗi này. Em đọc trên mạng giải thích rồi nhưng vẫn không hiểu mình sai ở đâu để nó báo ra lỗi như vậy. 
def INDEX(self):
self.getCategoryCrawl()
#self.inprint(self.cat_crawl)
self.inprint(self.cat_crawl)
print type(self.cat_crawl)
category = self.cat_crawl
self.InsertCategoryToSSG(category)
def InsertCategoryToSSG(self, category, father = 0, fatherSSG = 0):
print father
print fatherSSG
for cat in category:
if cat['father'] == 0:
category.remove(cat)
fatherSSG = self.InsetCatCrawl(cat['name'],fatherSSG)
father = cat['id']
print fatherSSG
print father
self.InsertCategoryToSSG(category, father, fatherSSG)
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?