diff options
author | louise <louise> | 2009-04-08 16:13:11 +0000 |
---|---|---|
committer | louise <louise> | 2009-04-08 16:13:11 +0000 |
commit | 566427ddf41fd956122346fb813437e94a27b4c8 (patch) | |
tree | 72f2417664aae94873b05f11cfce69245633c2b2 /app/controllers/admin_general_controller.rb | |
parent | b2a9532628d163dc5d8904a7f95b25a18ff38276 (diff) |
Make old_unclassfied function a bit more flexible for reuse elsewhere e.g. in mailing reminders to requesters
Diffstat (limited to 'app/controllers/admin_general_controller.rb')
-rw-r--r-- | app/controllers/admin_general_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/admin_general_controller.rb b/app/controllers/admin_general_controller.rb index cbb381e21..bcfd11e03 100644 --- a/app/controllers/admin_general_controller.rb +++ b/app/controllers/admin_general_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: admin_general_controller.rb,v 1.4 2009-04-08 10:45:33 louise Exp $ +# $Id: admin_general_controller.rb,v 1.5 2009-04-08 16:13:11 louise Exp $ class AdminGeneralController < AdminController def index @@ -19,7 +19,9 @@ class AdminGeneralController < AdminController @requires_admin_requests = InfoRequest.find(:all, :select => '*, ' + InfoRequest.last_event_time_clause + ' as last_event_time', :conditions => ["described_state = 'requires_admin'"], :order => "last_event_time") @error_message_requests = InfoRequest.find(:all, :select => '*, ' + InfoRequest.last_event_time_clause + ' as last_event_time', :conditions => ["described_state = 'error_message'"], :order => "last_event_time") @blank_contacts = PublicBody.find(:all, :conditions => ["request_email = ''"], :order => "updated_at") - @ten_days_old_unclassified = InfoRequest.find_old_unclassified(limit=50) + @ten_days_old_unclassified = InfoRequest.find_old_unclassified(:limit => 50, + :conditions => ["prominence != 'backpage'"], + :age_in_days => 10) @holding_pen_messages = InfoRequest.holding_pen_request.incoming_messages end |