summaryrefslogtreecommitdiff
path: root/show-edit-counts.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-02 12:01:01 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-02 12:01:01 -0400
commit08e040d2b79213e5632492f0b6f5e34924a99e4f (patch)
treebc4db165a777681338cfde7539df08f48ee65a20 /show-edit-counts.rb
parent396672dbb215330a1f70960429ca516ee441ae9c (diff)
It's been a while since I made a commit
Diffstat (limited to 'show-edit-counts.rb')
-rwxr-xr-xshow-edit-counts.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/show-edit-counts.rb b/show-edit-counts.rb
index 6065abd..6d3febb 100755
--- a/show-edit-counts.rb
+++ b/show-edit-counts.rb
@@ -1,9 +1,8 @@
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
-load 'mwapi.rb'
+load './mwapi.rb'
require 'yaml'
-require 'pp'
mw = MWApi.new('https://wiki.parabolagnulinux.org/api.php')
credentials = YAML.load_file('credentials.yml')
@@ -18,9 +17,7 @@ while not aufrom.nil? do
:auprop => 'blockinfo|editcount|registration',
:aulimit => 5000,
:aufrom => aufrom)
- for user in audata['query']['allusers']
- userqueue.push(user)
- end
+ userqueue.concat(audata['query']['allusers'])
aufrom = (audata['query-continue'].nil?) ? nil : audata['query-continue']['allusers']['aufrom']
end