From 2838da3f20aa48b38ed89559e86717cd75f76f90 Mon Sep 17 00:00:00 2001 From: m26dvd <31007572+m26dvd@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:21:33 +0000 Subject: [PATCH] fix: London Borough Sutton fix: #1131 --- .../uk_bin_collection/councils/LondonBoroughSutton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uk_bin_collection/uk_bin_collection/councils/LondonBoroughSutton.py b/uk_bin_collection/uk_bin_collection/councils/LondonBoroughSutton.py index 8537e1ac32..b232051cb8 100644 --- a/uk_bin_collection/uk_bin_collection/councils/LondonBoroughSutton.py +++ b/uk_bin_collection/uk_bin_collection/councils/LondonBoroughSutton.py @@ -61,7 +61,7 @@ def parse_data(self, page: str, **kwargs) -> dict: "%A, %d %B", ) - if next_collection.month == 1: + if (datetime.now().month == 12) and (next_collection.month == 1): next_collection = next_collection.replace(year=next_year) else: next_collection = next_collection.replace(year=current_year)