diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fixmystreet.com/showcouncilrates | 1 | ||||
-rwxr-xr-x | bin/update-all-reports | 3 | ||||
-rwxr-xr-x | bin/update-schema | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/bin/fixmystreet.com/showcouncilrates b/bin/fixmystreet.com/showcouncilrates index 1dacae597..a3465c575 100755 --- a/bin/fixmystreet.com/showcouncilrates +++ b/bin/fixmystreet.com/showcouncilrates @@ -38,7 +38,6 @@ my $stats = dbh()->selectall_arrayref($query, { Slice => {} }); my @councils; foreach my $row (@$stats) { if ($row->{council}) { - $row->{council} =~ s/\|.*//g; my @council_ids = split(/,/, $row->{council}); push(@councils, @council_ids); $row->{council} = \@council_ids; diff --git a/bin/update-all-reports b/bin/update-all-reports index f6cd34210..0627cedc2 100755 --- a/bin/update-all-reports +++ b/bin/update-all-reports @@ -57,8 +57,7 @@ while ( my @problem = $problems->next ) { $problem{bodies} = 0; } else { # Add to bodies it was sent to - (my $bodies = $problem{bodies_str}) =~ s/\|.*$//; - @bodies = split( /,/, $bodies ); + @bodies = split( /,/, $problem{bodies_str} ); $problem{bodies} = scalar @bodies; } foreach my $body ( @bodies ) { diff --git a/bin/update-schema b/bin/update-schema index 57d1d8ad3..dff2255d5 100755 --- a/bin/update-schema +++ b/bin/update-schema @@ -195,6 +195,7 @@ else { # By querying the database schema, we can see where we're currently at # (assuming schema change files are never half-applied, which should be the case) sub get_db_version { + return '0035' if column_exists('problem', 'bodies_missing'); return '0034' if ! function_exists('ms_current_timestamp'); return '0033' if ! function_exists('angle_between'); return '0032' if table_exists('moderation_original_data'); |