jenkins-bot has submitted this change and it was merged.
Change subject: Fixup for bug in last featured.py rewrite ......................................................................
Fixup for bug in last featured.py rewrite
Change-Id: I6cf630b6338c76999b02e788e70faffcab9ee262 --- M scripts/featured.py 1 file changed, 3 insertions(+), 5 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/featured.py b/scripts/featured.py index cc374ae..9e25425 100644 --- a/scripts/featured.py +++ b/scripts/featured.py @@ -210,6 +210,7 @@
self.availableOptions.update({ 'async': False, # asynchron putting a page? + 'afterpage': u"!", 'count': False, # featuredcount 'featured': False, 'former': False, @@ -378,7 +379,7 @@ % (site, len(articles), task)) while articles: p = articles.pop(0) - if p.title() < afterpage: + if p.title() < self.getOption('afterpage'): continue
if u"/" in p.title() and p.namespace() != 0: @@ -596,15 +597,12 @@
def main(*args): - global afterpage - afterpage = u"!" - options = {} for arg in pywikibot.handleArgs(): if arg.startswith('-fromlang:'): options[arg[1:9]] = arg[10:].split(",") elif arg.startswith('-after:'): - afterpage = arg[7:] + options['afterpage'] = arg[7:] elif arg.startswith('-nocache:'): options[arg[1:8]] = arg[9:].split(",") else:
pywikibot-commits@lists.wikimedia.org