From 9a2524540aed986cf59ae0242a6e4ce460bbaf03 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 16 Aug 2024 17:34:44 +0100 Subject: [PATCH] [Merton] Only look at reports already sent to Echo. --- perllib/FixMyStreet/Script/Merton/SendWaste.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perllib/FixMyStreet/Script/Merton/SendWaste.pm b/perllib/FixMyStreet/Script/Merton/SendWaste.pm index a676c657a2..2ec68307c8 100644 --- a/perllib/FixMyStreet/Script/Merton/SendWaste.pm +++ b/perllib/FixMyStreet/Script/Merton/SendWaste.pm @@ -87,6 +87,7 @@ sub _problems { my $self = shift; FixMyStreet::DB->resultset('Problem')->to_body($self->body->id)->search({ state => { -not_in => [ FixMyStreet::DB::Result::Problem::hidden_states ] }, + external_id => { '!=' => undef }, cobrand_data => 'waste', cobrand => 'merton', -not => { extra => { '\?' => 'sent_to_crimson' } },