Pārlūkot izejas kodu

Update AFCStatus and Rights IRC commands per wikitools updates.

tags/v0.1^2
Ben Kurtovic pirms 13 gadiem
vecāks
revīzija
a2ceb7a855
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      irc/commands/afc_status.py
  2. +1
    -1
      irc/commands/rights.py

+ 1
- 1
irc/commands/afc_status.py Parādīt failu

@@ -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 Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt