Permalink
Browse files

remove limit of 100 experiments for group

  • Loading branch information...
1 parent 3283924 commit f29d6001c4c7d1f32767d698695628c4f7752909 @lukebaker lukebaker committed Jul 24, 2013
Showing with 0 additions and 14 deletions.
  1. +0 −14 app/controllers/abingo_dashboard_controller.rb
@@ -118,20 +118,6 @@ def group_experiments(experiments)
grouped_experiments[potential_group] << e.id
end
- grouped_experiments.each do |group, experiment_ids|
- limit = 100
- if experiment_ids.length > limit
- top_ids = Abingo::Alternative.find(:all,
- :select => 'experiment_id, SUM(participants) AS total',
- :conditions => {:experiment_id => experiment_ids},
- :group => :experiment_id,
- :order => 'total DESC',
- :limit => limit
- ).map{|a| a.experiment_id }
- grouped_experiments[group] = top_ids
- end
- end
-
grouped_experiments
end

0 comments on commit f29d600

Please sign in to comment.