diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-18 10:06:14 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-18 10:19:37 +0100 |
commit | 9f9f60106e8e65a5fd7ba5c979e87c03413518f1 (patch) | |
tree | b2c1ec627dab609e9ad72da768ca662e0503387a /app/controllers/request_game_controller.rb | |
parent | 40bfb44da55f134e3525c48d5b98c7f096f01061 (diff) |
Restrict old_unclassified methods to normal prominence.0.13.0.3hotfix/0.13.0.3
Fixes #1082.
Diffstat (limited to 'app/controllers/request_game_controller.rb')
-rw-r--r-- | app/controllers/request_game_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index 6eac399ac..298818bc7 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -13,8 +13,7 @@ class RequestGameController < ApplicationController @total = InfoRequest.count @done = @total - @missing @percentage = (@done.to_f / @total.to_f * 10000).round / 100.0 - - @requests = InfoRequest.get_random_old_unclassified(3) + @requests = InfoRequest.get_random_old_unclassified(3, :conditions => ["prominence = 'normal'"]) if @missing == 0 flash[:notice] = _('<p>All done! Thank you very much for your help.</p><p>There are <a href="{{helpus_url}}">more things you can do</a> to help {{site_name}}.</p>', |