Browse Source

Update AFCStatus and Rights IRC commands per wikitools updates.

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
a2ceb7a855
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      irc/commands/afc_status.py
  2. +1
    -1
      irc/commands/rights.py

+ 1
- 1
irc/commands/afc_status.py View File

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




+ 1
- 1
irc/commands/rights.py View File

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


Loading…
Cancel
Save