From b207b027f93161dd5764f6a6fdfe4823180d2e9b Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 8 Jan 2025 17:11:22 +0000 Subject: [PATCH] [Bexley] Look back 30 days for recent collections. --- perllib/FixMyStreet/Cobrand/Bexley/Waste.pm | 4 ++-- t/app/controller/waste_bexley.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/perllib/FixMyStreet/Cobrand/Bexley/Waste.pm b/perllib/FixMyStreet/Cobrand/Bexley/Waste.pm index b002a88ae2..44b9cee4af 100644 --- a/perllib/FixMyStreet/Cobrand/Bexley/Waste.pm +++ b/perllib/FixMyStreet/Cobrand/Bexley/Waste.pm @@ -562,9 +562,9 @@ sub _open_reports { sub _recent_collections { my ( $self, $property ) = @_; - # Get collections for the last 21 days + # Get collections for the last 30 days my $dt_today = DateTime->today( time_zone => FixMyStreet->local_time_zone ); - my $dt_from = $dt_today->clone->subtract( days => 21 ); + my $dt_from = $dt_today->clone->subtract( days => 30 ); # TODO GetCollectionByUprnAndDatePlus would be preferable as it supports # an end date, but Bexley's live API does not seem to support it. So we diff --git a/t/app/controller/waste_bexley.t b/t/app/controller/waste_bexley.t index 08db173059..a88ad75d04 100644 --- a/t/app/controller/waste_bexley.t +++ b/t/app/controller/waste_bexley.t @@ -2169,7 +2169,7 @@ sub _collection_by_uprn_date { ], # For _recent_collections - '2024-03-10T00:00:00' => [ + '2024-03-01T00:00:00' => [ { Date => '24/03/2024 00:00:00', Round => 'RND-1', Schedule => 'Tue Wk 1',