diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-03 15:23:31 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-03 15:23:31 +0100 |
commit | 9c9fb7456d614c7d96881751a14f2dfff5c4225d (patch) | |
tree | 9d11778e850a6cb869e209464a58ee0b16e10b18 /bin | |
parent | d41c0531baf3f76528668323c7ddb20735e598bb (diff) |
add send_extended_statuses conf option and use in send-comments
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/send-comments | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/send-comments b/bin/send-comments index b054ebd8f..b60c46e5d 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -56,12 +56,18 @@ while ( my $council = $councils->next ) { } ); - my $o = Open311->new( + my %open311_conf = ( endpoint => $council->endpoint, jurisdiction => $council->jurisdiction, api_key => $council->api_key, ); + if ( $council->send_extended_statuses ) { + $open311_conf{extended_statuses} = 1; + } + + my $o = Open311->new( %open311_conf ); + while ( my $comment = $comments->next ) { my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($comment->cobrand)->new(); |