aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-comments
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2013-01-22 01:57:26 +0000
committerDave Whiteland <dave@mysociety.org>2013-01-22 01:57:26 +0000
commit7b5bfa4d29640197a5eaaeff208c5b1a1a4e1221 (patch)
tree6f481f6725318b179c34e294794ff70dbb9b6db4 /bin/send-comments
parentcc7fb1eb334f450e8c9af0e1d4f8329d5f24eafd (diff)
parent95d6bb8fcced530ad68438ed9a44a47cb38f0014 (diff)
Merge remote branch 'origin/master'
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-xbin/send-comments9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/send-comments b/bin/send-comments
index d55f8dce4..232521447 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -64,13 +64,20 @@ while ( my $council = $councils->next ) {
$use_extended = 1;
}
- my $o = Open311->new(
+ my %open311_conf = (
endpoint => $council->endpoint,
jurisdiction => $council->jurisdiction,
api_key => $council->api_key,
use_extended_updates => $use_extended,
);
+
+ if ( $council->send_extended_statuses ) {
+ $open311_conf{extended_statuses} = 1;
+ }
+
+ my $o = Open311->new( %open311_conf );
+
if ( $council->area_id =~ /2482/ ) {
my $endpoints = $o->endpoints;
$endpoints->{update} = 'update.xml';