Browse Source

Some additional bugfixes.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
359905aa60
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      earwigbot/commands/afc_report.py
  2. +2
    -1
      earwigbot/commands/afc_submissions.py

+ 1
- 1
earwigbot/commands/afc_report.py View File

@@ -79,7 +79,7 @@ class AFCReport(Command):
url = page.url.replace("en.wikipedia.org/wiki", "enwp.org")
short = self.statistics.get_short_title(page.title)
status = self.get_status(page)
user = self.site.get_user(page.get_creator())
user = page.get_creator()
user_name = user.name
user_url = user.get_talkpage().url



+ 2
- 1
earwigbot/commands/afc_submissions.py View File

@@ -56,5 +56,6 @@ class AFCSubmissions(Command):
site = self.bot.wiki.get_site()
category = site.get_category("Pending AfC submissions")
members = category.get_members(use_sql=True, limit=number)
pages = ", ".join([member.url for member in members])
urls = [member.url for member in members and member.title not in self.ignore_list]
pages = ", ".join(urls)
self.reply(data, "{0} pending AfC subs: {1}".format(number, pages))

Loading…
Cancel
Save