diff options
Diffstat (limited to 'bin/open311-update-reports')
-rw-r--r-- | bin/open311-update-reports | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/open311-update-reports b/bin/open311-update-reports index 292c0e937..81a0394b8 100644 --- a/bin/open311-update-reports +++ b/bin/open311-update-reports @@ -30,9 +30,11 @@ while ( my $council = $council_list->next ) { my $reports = FixMyStreet::App->model('DB::Problem')->search( { council => { like => "\%$area_id\%" }, - external_id => { '!=', undef }, - external_id => { '!=', '' }, - state => { 'IN', [qw/confirmed fixed/] } + state => { 'IN', [qw/confirmed fixed/] }, + -and => [ + external_id => { '!=', undef }, + external_id => { '!=', '' }, + ], } ); |