aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-all-reports
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-xbin/update-all-reports8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports
index d0146dd47..e60d7ddef 100755
--- a/bin/update-all-reports
+++ b/bin/update-all-reports
@@ -69,6 +69,14 @@ while ( my @problem = $problems->next ) {
}
}
+if ( FixMyStreet->config('BASE_URL') =~ /emptyhomes/ ) {
+ my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker('emptyhomes')->new();
+ my $stats = $cobrand->old_site_stats;
+ foreach (keys %$stats) {
+ $open{$_}{unknown} += $stats->{$_};
+ }
+}
+
my $body = JSON->new->utf8(1)->encode( {
fixed => \%fixed,
open => \%open,