Commit b6cb8ac5d4b40f292dddd13cca02f00f75dd819d

Authored by Luke Baker
1 parent b083c2c6

fix code to get catchup tests passing

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/question.rb
@@ -146,7 +146,7 @@ class Question < ActiveRecord::Base @@ -146,7 +146,7 @@ class Question < ActiveRecord::Base
146 # batches. 146 # batches.
147 ActiveRecord::Base.connection.select_all(sql).each do |p| 147 ActiveRecord::Base.connection.select_all(sql).each do |p|
148 value = [(1.0/ (p['votes_count'].to_i + 1).to_f).to_f, throttle_min].min 148 value = [(1.0/ (p['votes_count'].to_i + 1).to_f).to_f, throttle_min].min
149 - weights[p['left_choice_id']+", "+p['right_choice_id']] = value 149 + weights[p['left_choice_id'].to_s+", "+p['right_choice_id'].to_s] = value
150 sum += value 150 sum += value
151 end 151 end
152 152