瀏覽代碼

Update AFCStatus and Rights IRC commands per wikitools updates.

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
a2ceb7a855
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      irc/commands/afc_status.py
  2. +1
    -1
      irc/commands/rights.py

+ 1
- 1
irc/commands/afc_status.py 查看文件

@@ -87,7 +87,7 @@ class AFCStatus(BaseCommand):
def count_submissions(self):
"""Returns the number of open AFC submissions (count of CAT:PEND)."""
cat = self.site.get_category("Pending AfC submissions")
subs = cat.get_members(limit=500)
subs = cat.members(limit=500)
subs -= 2 # remove [[Wikipedia:Articles for creation/Redirects]] and [[Wikipedia:Files for upload]], which aren't real submissions
return subs



+ 1
- 1
irc/commands/rights.py 查看文件

@@ -27,7 +27,7 @@ class Rights(BaseCommand):
username = ' '.join(data.args)
site = tools.get_site()
user = site.get_user(username)
rights = user.get_groups()
rights = user.groups()
if rights:
try:
rights.remove("*") # remove the implicit '*' group given to everyone


Loading…
取消
儲存