diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-02-09 14:59:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-02-09 14:59:18 +0000 |
commit | 6c718aa2e1d3fdbf9f94982a3f95ef5b5495e667 (patch) | |
tree | daa95997ff52c3fdf9313c5893fcfaab8cc781d4 /bin/update-all-reports | |
parent | c7ddf0cfa97601bfb1da63a977bca68ed3da0583 (diff) | |
parent | 9a4b74df50886a5eb79ae53434200b14a1d36a19 (diff) |
Merge remote-tracking branch 'mysociety/add-osm-link-to-email'
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-x | bin/update-all-reports | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports index 60da837e9..d951756e4 100755 --- a/bin/update-all-reports +++ b/bin/update-all-reports @@ -22,7 +22,7 @@ use FixMyStreet::DB; use File::Path (); use File::Slurp; -use JSON; +use JSON::MaybeXS; use List::MoreUtils qw(zip); my $fourweeks = 4*7*24*60*60; @@ -89,7 +89,7 @@ if ( FixMyStreet->config('BASE_URL') =~ /emptyhomes/ ) { } } -my $body = JSON->new->utf8(1)->encode( { +my $body = encode_json( { fixed => \%fixed, open => \%open, } ); |