Revision: 6972 Author: cosoleto Date: 2009-06-19 07:20:57 +0000 (Fri, 19 Jun 2009)
Log Message: ----------- Ignore empty report pages while computing statistics.
Modified Paths: -------------- trunk/pywikipedia/copyright_put.py
Modified: trunk/pywikipedia/copyright_put.py =================================================================== --- trunk/pywikipedia/copyright_put.py 2009-06-17 23:42:45 UTC (rev 6971) +++ trunk/pywikipedia/copyright_put.py 2009-06-19 07:20:57 UTC (rev 6972) @@ -131,7 +131,8 @@
gnt += gn ; ynt += yn ; mnt += mn ; ent += en ; snt += sn
- output += u"|%s||%s||%s KB||%s||%s||%s\n|-\n" % (page.aslink(), en, sn / 1024, gn, yn, mn) + if en > 0: + output += u"|%s||%s||%s KB||%s||%s||%s\n|-\n" % (page.aslink(), en, sn / 1024, gn, yn, mn)
output += u"""| |||||||| |-