diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/Open311.pm | 2 | ||||
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/perllib/Open311.pm b/perllib/Open311.pm index a91de0a7c..a57fceeaf 100644 --- a/perllib/Open311.pm +++ b/perllib/Open311.pm @@ -327,7 +327,7 @@ sub map_state { 'not councils responsibility' => 'not responsible', 'no further action' => 'unable to fix', open => 'confirmed', - closed => 'fixed - council', + closed => $self->extended_statuses ? 'closed' : 'fixed - council', ); return $state_map{$incoming_state} || $incoming_state; diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 7cbfc7192..4b1642506 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -32,9 +32,10 @@ sub fetch { while ( my $body = $bodies->next ) { my $o = Open311->new( - endpoint => $body->endpoint, - api_key => $body->api_key, - jurisdiction => $body->jurisdiction, + endpoint => $body->endpoint, + api_key => $body->api_key, + jurisdiction => $body->jurisdiction, + extended_statuses => $body->send_extended_statuses, ); # custom endpoint URLs because these councils have non-standard paths |