Revision: 8481 Author: multichill Date: 2010-09-05 16:01:11 +0000 (Sun, 05 Sep 2010)
Log Message: ----------- Don't add {{Uncategorized}} if addCategory is set.
Modified Paths: -------------- trunk/pywikipedia/flickrripper.py
Modified: trunk/pywikipedia/flickrripper.py =================================================================== --- trunk/pywikipedia/flickrripper.py 2010-09-05 15:25:45 UTC (rev 8480) +++ trunk/pywikipedia/flickrripper.py 2010-09-05 16:01:11 UTC (rev 8481) @@ -204,6 +204,7 @@ description = description.replace(u'{{flickrreview}}', u'{{flickrreview|' + reviewer + '|{{subst:CURRENTYEAR}}-{{subst:CURRENTMONTH}}-{{subst:CURRENTDAY2}}}}')
if addCategory: + description = description.replace(u'{{subst:unc}}\n', u'') description = description + u'\n[[Category:' + addCategory + ']]\n' description = description.replace(u'\r\n', u'\n') return description