diff options
author | Francis Irving <francis@mysociety.org> | 2010-01-12 16:34:01 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-01-12 16:34:01 +0000 |
commit | 0d437d47fe20c5a0ca6cb92b6925b8fa3745a38b (patch) | |
tree | 5c5a1f3b043368287084e5688804e8720ea3f672 /app/models/info_request.rb | |
parent | 769db01da09958260230ee85fc2aeaf774ae3197 (diff) |
don't expire holding pen
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 8ff58120b..8cfc61c4e 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -913,9 +913,9 @@ public # This is called from cron regularly. def InfoRequest.stop_new_responses_on_old_requests # 6 months since last change to request, only allow new incoming messages from authority domains - InfoRequest.update_all "allow_new_responses_from = 'authority_only' where updated_at < (now() - interval '6 months') and allow_new_responses_from = 'anybody'" + InfoRequest.update_all "allow_new_responses_from = 'authority_only' where updated_at < (now() - interval '6 months') and allow_new_responses_from = 'anybody' and url_title <> 'holding_pen'" # 1 year since last change requests, don't allow any new incoming messages - InfoRequest.update_all "allow_new_responses_from = 'nobody' where updated_at < (now() - interval '1 year') and allow_new_responses_from in ('anybody', 'authority_only')" + InfoRequest.update_all "allow_new_responses_from = 'nobody' where updated_at < (now() - interval '1 year') and allow_new_responses_from in ('anybody', 'authority_only') and url_title <> 'holding_pen'" end # Returns a random FOI request |