diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-25 00:05:19 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-25 00:05:19 -0500 |
commit | 396672dbb215330a1f70960429ca516ee441ae9c (patch) | |
tree | 010bddc7b3be1b3595751f6259950b5f38be67b0 | |
parent | da95f2153daf15b0fd347f7bf1767c70499c459f (diff) |
show-edit-counts: don't trust editcount=0 wrt finding existing_editcount
-rwxr-xr-x | show-edit-counts.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/show-edit-counts.rb b/show-edit-counts.rb index bcd5a3c..6065abd 100755 --- a/show-edit-counts.rb +++ b/show-edit-counts.rb @@ -19,18 +19,7 @@ while not aufrom.nil? do :aulimit => 5000, :aufrom => aufrom) for user in audata['query']['allusers'] - if user['editcount'] == 0 - # optimize 0 edits means we don't need to count how many aren't deleted - print "name: #{user['name']}\tregistration: #{user['registration']}\ttotal_editcount: 0\texisting_editcount: 0" - if user['blockid'].nil? - print "\n" - else - print "\tblockreason: #{user['blockreason']}\n" - end - else - # queue this user for counting how many live edits they have - userqueue.push(user) - end + userqueue.push(user) end aufrom = (audata['query-continue'].nil?) ? nil : audata['query-continue']['allusers']['aufrom'] end |