diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-04-27 16:18:33 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-04-27 16:18:33 +0100 |
commit | 2f2415d8d126423c17dd85d29f8fb543b56b946d (patch) | |
tree | 2badecc581befa352b54c40278e84cd4847096bb /app/controllers/request_game_controller.rb | |
parent | 0b91fc3469f6110abc9506ef70b625d1ad9bf4f2 (diff) | |
parent | fc573c98372146e4fc7546c7e65cc4719e74205a (diff) |
Merge branch 'hotfix/0.21.0.23'0.21.0.23
Diffstat (limited to 'app/controllers/request_game_controller.rb')
-rw-r--r-- | app/controllers/request_game_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index 298818bc7..7eadc1204 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -13,7 +13,8 @@ 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, :conditions => ["prominence = 'normal'"]) + @requests = InfoRequest.includes(:public_body, :user).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>', |