diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-04 06:56:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-04 06:56:57 +0000 |
commit | f9f9e7745f71d766757e243d9d48b146c750358d (patch) | |
tree | d593b60f1f9f5e95b6a300de8ef43d7c87cbeab4 /bin | |
parent | 7e27a1d6a528bf8a10b7186a3d01ce801ccc1cd8 (diff) | |
parent | 6eaf54135704b2f6a19e26896ed062f492251cdb (diff) |
Merge remote branch 'origin/master'
Conflicts:
bin/send-comments
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/send-comments | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/send-comments b/bin/send-comments index 850a57758..4f654fe20 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -33,6 +33,8 @@ use constant SEND_FAIL_RETRIES_CUTOFF => 3; use constant SEND_METHOD_EMAIL => 'email'; use constant SEND_METHOD_OPEN311 => 'Open311'; +use constant COUNCIL_ID_OXFORDSHIRE => 2237; + # Set up site, language etc. my ($verbose, $nomail) = CronFns::options(); my $base_url = mySociety::Config::get('BASE_URL'); @@ -44,6 +46,11 @@ my $bodies = FixMyStreet::App->model('DB::Body')->search( { } ); while ( my $body = $bodies->next ) { + + # Oxfordshire (OCC) is special: + # we do *receive* service_request_updates (aka comments) for OCC, but we never *send* them, so skip this pass + next if $body->areas->{COUNCIL_ID_OXFORDSHIRE}; + my $use_extended = 0; my $comments = FixMyStreet::App->model('DB::Comment')->search( { 'me.whensent' => undef, |