diff options
-rwxr-xr-x | bin/open311-populate-service-list | 4 | ||||
-rw-r--r-- | perllib/Open311/PopulateServiceList.pm | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/open311-populate-service-list b/bin/open311-populate-service-list index 8cb41a47b..9c05055c6 100755 --- a/bin/open311-populate-service-list +++ b/bin/open311-populate-service-list @@ -23,8 +23,8 @@ my ($opt, $usage) = describe_options( print($usage->text), exit if $opt->help; my $bodies = FixMyStreet::DB->resultset('Body')->search( { - # Until Oxfordshire does, and Bristol stops erroring - name => { -not_in => [ 'Oxfordshire County Council', 'Bristol City Council' ] }, + # Until Oxfordshire does + name => { -not_in => [ 'Oxfordshire County Council' ] }, send_method => 'Open311' } ); my $verbose = 0; diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm index e8d06efdf..30d888eb4 100644 --- a/perllib/Open311/PopulateServiceList.pm +++ b/perllib/Open311/PopulateServiceList.pm @@ -221,7 +221,8 @@ sub _add_meta_to_contact { warn sprintf( "Empty meta data for %s at %s", $self->_current_service->{service_code}, $self->_current_body->endpoint ) - if $self->verbose; + # Bristol has a habit of returning empty metadata, stop noise from that. + if $self->verbose and $self->_current_body->name ne 'Bristol City Council'; return; } |