From a2ceb7a85596fb49f8315aa4149969534ae5be18 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 27 Jul 2011 23:34:16 -0400 Subject: [PATCH] Update AFCStatus and Rights IRC commands per wikitools updates. --- irc/commands/afc_status.py | 2 +- irc/commands/rights.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/commands/afc_status.py b/irc/commands/afc_status.py index 2b8b880..0f5722e 100644 --- a/irc/commands/afc_status.py +++ b/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 diff --git a/irc/commands/rights.py b/irc/commands/rights.py index 6c44227..4289002 100644 --- a/irc/commands/rights.py +++ b/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