diff options
author | Dave Whiteland <dave@mysociety.org> | 2013-02-04 01:18:33 +0000 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2013-02-04 01:18:33 +0000 |
commit | 6eaf54135704b2f6a19e26896ed062f492251cdb (patch) | |
tree | 9f1f564f09756ed9c63934502a7e7280366a94b3 /bin | |
parent | 3e0d12e8584d132b573f536ab5cd01e24241827b (diff) |
explicitly stop Oxfordshire Open311 endpoint sending comments; it only receives them (currently we don't make the distinction in config)
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 232521447..d2b057996 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 $councils = FixMyStreet::App->model('DB::Open311Conf')->search( { } ); while ( my $council = $councils->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 $council->area_id == COUNCIL_ID_OXFORDSHIRE; + my $use_extended = 0; my $comments = FixMyStreet::App->model('DB::Comment')->search( { 'me.whensent' => undef, |