瀏覽代碼

Use correct API param for title.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
6ec8ecf9f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/wiki/category.py

+ 1
- 1
earwigbot/wiki/category.py 查看文件

@@ -105,7 +105,7 @@ class Category(Page):
def _get_size_via_api(self, member_type):
"""Return the size of the category using the API."""
result = self.site.api_query(action="query", prop="categoryinfo",
cmtitle=self.title)
titles=self.title)
info = result["query"]["pages"].values()[0]["categoryinfo"]
return info[member_type]



Loading…
取消
儲存