Commit 8da4bfb42b396250e3dcb5caf6e7d41866afe86c
1 parent
fdaeaf26
Exists in
master
and in
1 other branch
Activating catchup on studgov, priority marketplace
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
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