From 359905aa60561ea7005be378e3c49d6de98f389a Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Jul 2012 04:52:19 -0400 Subject: [PATCH] Some additional bugfixes. --- earwigbot/commands/afc_report.py | 2 +- earwigbot/commands/afc_submissions.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/earwigbot/commands/afc_report.py b/earwigbot/commands/afc_report.py index 803f1e4..db9a952 100644 --- a/earwigbot/commands/afc_report.py +++ b/earwigbot/commands/afc_report.py @@ -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 diff --git a/earwigbot/commands/afc_submissions.py b/earwigbot/commands/afc_submissions.py index 2c8ce9f..ec08527 100644 --- a/earwigbot/commands/afc_submissions.py +++ b/earwigbot/commands/afc_submissions.py @@ -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))