Revision: 6348 Author: purodha Date: 2009-02-13 16:06:26 +0000 (Fri, 13 Feb 2009)
Log Message: ----------- Typing error.
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2009-02-13 15:29:12 UTC (rev 6347) +++ trunk/pywikipedia/pagegenerators.py 2009-02-13 16:06:26 UTC (rev 6348) @@ -931,10 +931,10 @@ page = wikipedia.Page(site, title) gen = InterwikiPageGenerator(page) elif arg.startswith('-randomredirect'): - if len(arg) == 7: + if len(arg) == 15: gen = RandomRedirectPageGenerator() else: - gen = RandomRedirectPageGenerator(number = int(arg[8:])) + gen = RandomRedirectPageGenerator(number = int(arg[16:])) elif arg.startswith('-random'): if len(arg) == 7: gen = RandomPageGenerator()