[Pywikipedia-svn] SVN: [7289] trunk/pywikipedia/wikipedia.py

alexsh at svn.wikimedia.org alexsh at svn.wikimedia.org
Tue Sep 22 13:27:16 UTC 2009


Revision: 7289
Author:   alexsh
Date:     2009-09-22 13:27:15 +0000 (Tue, 22 Sep 2009)

Log Message:
-----------
Page().getTemplates(): fix variable

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2009-09-22 12:55:37 UTC (rev 7288)
+++ trunk/pywikipedia/wikipedia.py	2009-09-22 13:27:15 UTC (rev 7289)
@@ -946,9 +946,9 @@
             'titles': self.title(),
             'tllimit': tllimit,
         }
-        if limit > config.special_page_limit:
+        if tllimit > config.special_page_limit:
             params['tllimit'] = config.special_page_limit
-            if limit > 5000 and self.site.isAllowed('apihighlimits'):
+            if tllimit > 5000 and self.site.isAllowed('apihighlimits'):
                 params['tllimit'] = 5000
         
         tmpsFound = []





More information about the Pywikipedia-svn mailing list