diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-02 12:01:01 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-02 12:01:01 -0400 |
commit | 08e040d2b79213e5632492f0b6f5e34924a99e4f (patch) | |
tree | bc4db165a777681338cfde7539df08f48ee65a20 /show-edit-counts.rb | |
parent | 396672dbb215330a1f70960429ca516ee441ae9c (diff) |
It's been a while since I made a commit
Diffstat (limited to 'show-edit-counts.rb')
-rwxr-xr-x | show-edit-counts.rb | 7 |
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 |