diff options
author | Struan Donald <struan@exo.org.uk> | 2013-01-08 16:18:01 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-01-08 16:18:01 +0000 |
commit | 00aba074db940777cb247b7aac0aa3da330e666c (patch) | |
tree | 7bece5f15593727779d416422c31fc9575ed18c5 /bin/send-comments | |
parent | 24728ae3ad06761c59ab84ebe63dd3e02d3dcbc5 (diff) | |
parent | 1a3a570a6414f9da9f767b12730e3f90c9f2161b (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-x | bin/send-comments | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/send-comments b/bin/send-comments index 4955cb2f3..5a14098bf 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -78,6 +78,18 @@ while ( my $council = $councils->next ) { while ( my $comment = $comments->next ) { my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($comment->cobrand)->new(); + # actually this should be OK for any devolved endpoint if original Open311->can_be_devolved, presumably + if ( $cobrand->moniker eq "fixmybarangay") { + my $sender = $cobrand->get_council_sender( $council->area_id, undef, $comment->problem->category ); + my $config = $sender->{config}; + $o = Open311->new( + endpoint => $config->endpoint, + jurisdiction => $config->jurisdiction, + api_key => $config->api_key, + use_extended_updates => 1, # FMB uses extended updates + ); + } + if ( $comment->send_fail_count ) { next if bromley_retry_timeout( $comment ); } |