Skip to content

Commit

Permalink
[Bexley] Look back 30 days for recent collections.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jan 8, 2025
1 parent 270401f commit b207b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions perllib/FixMyStreet/Cobrand/Bexley/Waste.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion t/app/controller/waste_bexley.t
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b207b02

Please sign in to comment.