Parcourir la source

Update AFCStatus and Rights IRC commands per wikitools updates.

tags/v0.1^2
Ben Kurtovic il y a 13 ans
Parent
révision
a2ceb7a855
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      irc/commands/afc_status.py
  2. +1
    -1
      irc/commands/rights.py

+ 1
- 1
irc/commands/afc_status.py Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer