Permalink
Browse files

Added a range size column, per user request.

  • Loading branch information...
MZMcBride
MZMcBride committed Jul 18, 2009
1 parent 8c66251 commit 619829c3d5496e6652cfcd82320b443f7fb3de20
Showing with 4 additions and 1 deletion.
  1. +4 −1 rangeblocks.py
View
@@ -29,6 +29,7 @@
|- style="white-space:nowrap;"
! No.
! Range
! Size
! Admin
! Timestamp
! Expiry
@@ -59,6 +60,7 @@
output = []
for row in cursor.fetchall():
ipb_address = u'{{ipr|1=%s}}' % unicode(row[0], 'utf-8')
range_size = u'%s' % unicode(row[0].split('/')[1], 'utf-8')
ipb_by_text = u'[[User talk:%s|]]' % unicode(row[1], 'utf-8')
ipb_timestamp = row[2]
ipb_expiry = u'%s' % unicode(row[3], 'utf-8')
@@ -73,7 +75,8 @@
| %s
| %s
| %s
|-''' % (i, ipb_address, ipb_by_text, ipb_timestamp, ipb_expiry, ipb_reason)
| %s
|-''' % (i, ipb_address, range_size, ipb_by_text, ipb_timestamp, ipb_expiry, ipb_reason)
output.append(table_row)
i += 1

0 comments on commit 619829c

Please sign in to comment.