Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small tidy for barnet-staging while testing on dev server

  • Loading branch information...
commit dc92341ce1497dae8469f263883133bb7e0a7ecd 1 parent 8768b89
Dave Whiteland authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 bin/send-reports
View
9 bin/send-reports
@@ -209,9 +209,12 @@ while (my $row = $unsent->next) {
if (mySociety::Config::get('STAGING_SITE')) {
# on a staging server send emails to ourselves rather than the councils
- @recips = ( mySociety::Config::get('CONTACT_EMAIL') );
- $send_web = 0;
- $send_email = 1;
+ # ...unless it's Barnet-staging (for now)
+ unless ($base_url=~/barnet-staging/) {
+ @recips = ( mySociety::Config::get('CONTACT_EMAIL') );
+ $send_web = 0;
+ $send_email = 1;
+ }
} elsif ($site eq 'emptyhomes') {
my $council = $row->council;
my $country = $areas_info->{$council}->{country};

0 comments on commit dc92341

Please sign in to comment.
Something went wrong with that request. Please try again.