Skip to content

Commit 67773ab

Browse files
authored
Merge pull request #1480 from fuzzysb/Fix-RugbyCouncil
fix(RugbyBoroughCouncil): Amended parsed date from full to abbreviate…
2 parents 1ec12bd + 0fc655c commit 67773ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uk_bin_collection/uk_bin_collection/councils/RugbyBoroughCouncil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def parse_data(self, page: str, **kwargs) -> dict:
113113
try:
114114
# Convert date from "Friday 09 May 2025" format
115115
parsed_date = datetime.strptime(
116-
collection_date, "%A %d %B %Y"
116+
collection_date, "%A %d %b %Y"
117117
)
118118
formatted_date = parsed_date.strftime("%d/%m/%Y")
119119

@@ -132,7 +132,7 @@ def parse_data(self, page: str, **kwargs) -> dict:
132132
key=lambda x: datetime.strptime(x["collectionDate"], "%d/%m/%Y")
133133
)
134134

135-
print(bin_data)
135+
#print(bin_data)
136136

137137
except Exception as e:
138138
# Here you can log the exception if needed

0 commit comments

Comments
 (0)