aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Problem.pm6
-rw-r--r--perllib/FixMyStreet/Script/Reports.pm1
-rw-r--r--perllib/Open311/PopulateServiceList.pm3
3 files changed, 3 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
index ae45351c4..3f083c073 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
@@ -232,12 +232,6 @@ sub categories_summary {
return \%categories;
}
-sub send_reports {
- my ( $rs, $site_override ) = @_;
- require FixMyStreet::Script::Reports;
- return FixMyStreet::Script::Reports::send($site_override);
-}
-
sub include_comment_counts {
my $rs = shift;
my $order_by = $rs->{attrs}{order_by};
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm
index 04ad1c893..aca894d03 100644
--- a/perllib/FixMyStreet/Script/Reports.pm
+++ b/perllib/FixMyStreet/Script/Reports.pm
@@ -45,6 +45,7 @@ sub send(;$) {
while (my $row = $unsent->next) {
my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($row->cobrand)->new();
+ FixMyStreet::DB->schema->cobrand($cobrand);
if ($debug_mode) {
$debug_unsent_count++;
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;
}