Commit 8da4bfb42b396250e3dcb5caf6e7d41866afe86c

Authored by Dhruv Kapadia
1 parent fdaeaf26

Activating catchup on studgov, priority marketplace

app/controllers/prompts_controller.rb
... ... @@ -64,7 +64,9 @@ class PromptsController < InheritedResources::Base
64 64 #@prompt.choices.each(&:compute_score!)
65 65 respond_to do |format|
66 66 if successful
67   - if @question.id == 120 #test0330
  67 + catchup_marketplace_ids = [120, 117, 1]
  68 + if catchup_marketplace_ids.include?(@question.id)
  69 + logger.info("Question #{@question.id} is using catchup algorithm!")
68 70 next_prompt = @question.catchup_choose_prompt
69 71 else
70 72 next_prompt = @question.picked_prompt
... ...
lib/tasks/test_api.rake
1 1 require 'fastercsv'
2 2 namespace :test_api do
3 3  
4   - task :all => [:question_vote_consistency]
  4 + task :all => [:question_vote_consistency,:generate_density_information]
5 5  
6 6 desc "Don't run unless you know what you are doing"
7 7 task(:generate_lots_of_votes => :environment) do
... ...