summaryrefslogtreecommitdiff
path: root/show-edit-counts.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-25 00:05:19 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-25 00:05:19 -0500
commit396672dbb215330a1f70960429ca516ee441ae9c (patch)
tree010bddc7b3be1b3595751f6259950b5f38be67b0 /show-edit-counts.rb
parentda95f2153daf15b0fd347f7bf1767c70499c459f (diff)
show-edit-counts: don't trust editcount=0 wrt finding existing_editcount
Diffstat (limited to 'show-edit-counts.rb')
-rwxr-xr-xshow-edit-counts.rb13
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