aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-comments
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-14 19:07:08 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-19 14:43:26 +0000
commitddf9dbdbf6486c781ca4a5822614b0b7cee2c062 (patch)
tree09c12affc3390138b03292d3f90810287b4941d0 /bin/send-comments
parentda29e8a75eaa92e98807ad89d29d3d1f3c01bc14 (diff)
Allow bodies to span multiple area IDs, and areas can be covered by more than one body.
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-xbin/send-comments6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/send-comments b/bin/send-comments
index ed13f10ba..1a12fa684 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -57,7 +57,7 @@ while ( my $body = $bodies->next ) {
}
);
- if ( $body->area_id == 2482 ) {
+ if ( $body->areas->{2482} ) {
$use_extended = 1;
}
@@ -68,7 +68,7 @@ while ( my $body = $bodies->next ) {
use_extended_updates => $use_extended,
);
- if ( $body->area_id == 2482 ) {
+ if ( $body->areas->{2482} ) {
my $endpoints = $o->endpoints;
$endpoints->{update} = 'update.xml';
$endpoints->{service_request_updates} = 'update.xml';
@@ -82,7 +82,7 @@ while ( my $body = $bodies->next ) {
next if bromley_retry_timeout( $comment );
}
- if ( $body->area_id == 2482 ) {
+ if ( $body->areas->{2482} ) {
my $extra = $comment->extra;
if ( !$extra ) {
$extra = {};