lib/ayadn/api.rb in ayadn-1.2.0 vs lib/ayadn/api.rb in ayadn-1.2.1

- old
+ new

@@ -199,10 +199,10 @@ resp end end def get_niceranks stream - ranks, user_ids, table, niceranks = [], [], {}, {} + user_ids, table, niceranks = [], {}, {} stream['data'].each do |post| user_ids << post['user']['id'].to_i table[post['user']['id'].to_i] = post['user']['username'] end user_ids.uniq!