From 396672dbb215330a1f70960429ca516ee441ae9c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 25 Jan 2014 00:05:19 -0500 Subject: show-edit-counts: don't trust editcount=0 wrt finding existing_editcount --- show-edit-counts.rb | 13 +------------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3