Revision: 7226 Author: filnik Date: 2009-09-11 12:11:24 +0000 (Fri, 11 Sep 2009)
Log Message: ----------- Bugfix by xqt for bug: #2834606
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-09-11 11:07:55 UTC (rev 7225) +++ trunk/pywikipedia/interwiki.py 2009-09-11 12:11:24 UTC (rev 7226) @@ -442,6 +442,7 @@ 'nov': (u'robote ', u'Adid', u'Ekartad', u'Modifikad'), 'nrm': (u'robot ', u'ajouôte', u'hale', u'amende'), 'os': (u'Робот ', u'баххæст кодта', u'Баивта', u'Аиуварс'), + 'pdc': (u'Bot: ', u'dezu geduh', u'raus gnumme', u'gennert'), 'pl': (u'robot ', u'dodaje', u'usuwa', u'poprawia'), 'pms': (u'ël trigomiro ', u'a gionta', u'a gava', u'a modìfica'), 'pt': (u'Bot: ', u'Adicionando', u'Removendo',u'Modificando'), @@ -1788,7 +1789,8 @@ def selectQuerySite(self): """Select the site the next query should go out for.""" # How many home-language queries we still have? - mycount = self.counts.get(wikipedia.getSite(), 0) + ###xqt: its seems this counts a negative value + mycount = max(0, self.counts.get(wikipedia.getSite(), 0)) # Do we still have enough subjects to work on for which the # home language has been retrieved? This is rough, because # some subjects may need to retrieve a second home-language page! @@ -2009,7 +2011,7 @@ globalvar.confirm = True elif arg == '-select': globalvar.select = True - elif arg == '-autonomous': + elif arg == '-autonomous' or arg == '-auto': globalvar.autonomous = True elif arg == '-noredirect': globalvar.followredirect = False
pywikipedia-svn@lists.wikimedia.org