diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-12 16:48:20 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-12 16:48:20 +0000 |
commit | d49ad9434700769c910b7d91c182b5c7b0f0a44a (patch) | |
tree | 0d4687d5b9d6f21ea8adfdfd77cba73aed87de1f /bin | |
parent | 3424d65a0dcd4197f01ee3f84f0def42cff50360 (diff) |
Static figures for old EHA reports.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-all-reports | 8 |
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, |