Commit 5d4dda2a5ac8f60cded56a47f8c5bc869a29e953

Authored by Luke Baker
1 parent 436f16de

convert strings to int for median

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/question.rb
... ... @@ -690,7 +690,7 @@ class Question < ActiveRecord::Base
690 690 UNION ALL
691 691 (SELECT skipper_id vid FROM skips WHERE question_id = #{id})
692 692 ) b GROUP BY b.vid ORDER BY total
693   - "), true) || nil
  693 + ").map{|i| i.to_i}, true) || nil
694 694 end
695 695  
696 696 def upload_to_participation_rate
... ...