aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-comments
diff options
context:
space:
mode:
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 5a14098bf..24b436ac8 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -61,13 +61,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';