summaryrefslogtreecommitdiff
path: root/show-edit-counts.rb
diff options
context:
space:
mode:
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