Commit b6cb8ac5d4b40f292dddd13cca02f00f75dd819d
1 parent
b083c2c6
Exists in
master
and in
1 other branch
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 | 146 | # batches. |
147 | 147 | ActiveRecord::Base.connection.select_all(sql).each do |p| |
148 | 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 | 150 | sum += value |
151 | 151 | end |
152 | 152 | ... | ... |