aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_po1
-rwxr-xr-xbin/send-comments2
-rwxr-xr-xbin/update-all-reports8
3 files changed, 10 insertions, 1 deletions
diff --git a/bin/make_po b/bin/make_po
index 76dc4566b..ad1fc1a89 100755
--- a/bin/make_po
+++ b/bin/make_po
@@ -14,6 +14,7 @@ mkdir("en_GB.UTF-8");
mkdir("en_GB.UTF-8/LC_MESSAGES");
my $pofile = shift;
+die "Please supply a filename" unless $pofile;
open(MAINPO, "FixMyStreet.po") or die "";
open(EHAPO, ">$pofile.po") or die "";
diff --git a/bin/send-comments b/bin/send-comments
index fb81d76e9..fc2ab42bd 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -49,7 +49,7 @@ while ( my $body = $bodies->next ) {
# Oxfordshire (OCC) is special:
# we do *receive* service_request_updates (aka comments) for OCC, but we never *send* them, so skip this pass
- next if $body->areas->{COUNCIL_ID_OXFORDSHIRE};
+ next if $body->areas->{+COUNCIL_ID_OXFORDSHIRE};
my $use_extended = 0;
my $comments = FixMyStreet::App->model('DB::Comment')->search( {
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,