[Pywikipedia-l] SVN: [5379] trunk/pywikipedia/commonsdelinker/checkusage.py

btongminh at svn.wikimedia.org btongminh at svn.wikimedia.org
Thu May 15 19:50:10 UTC 2008


Revision: 5379
Author:   btongminh
Date:     2008-05-15 19:50:10 +0000 (Thu, 15 May 2008)

Log Message:
-----------
Fix imageusage use

Modified Paths:
--------------
    trunk/pywikipedia/commonsdelinker/checkusage.py

Modified: trunk/pywikipedia/commonsdelinker/checkusage.py
===================================================================
--- trunk/pywikipedia/commonsdelinker/checkusage.py	2008-05-15 19:26:54 UTC (rev 5378)
+++ trunk/pywikipedia/commonsdelinker/checkusage.py	2008-05-15 19:50:10 UTC (rev 5379)
@@ -339,8 +339,8 @@
 			apipath = site.apipath()
 		
 		# FIXME: Use continue
-		kwargs = {'action': 'query', 'titles': u'Image:' + image,
-			'prop': 'info'}
+		kwargs = {'action': 'query', 'iutitle': u'Image:' + image,
+			'titles': u'Image:' + image, 'prop': 'info'}
 		kwargs['list'] = 'imageusage'
 		kwargs['iulimit'] = '500'
 		





More information about the Pywikipedia-l mailing list