Skip to content

Commit

Permalink
Added a range size column, per user request.
Browse files Browse the repository at this point in the history
  • Loading branch information
MZMcBride committed Jul 18, 2009
1 parent 8c66251 commit 619829c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rangeblocks.py
Expand Up @@ -29,6 +29,7 @@
|- style="white-space:nowrap;"
! No.
! Range
! Size
! Admin
! Timestamp
! Expiry
Expand Down Expand Up @@ -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')
Expand All @@ -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

Expand Down

0 comments on commit 619829c

Please sign in to comment.