Skip to content

Commit

Permalink
feat: Change bin_type's to be title() so it reads better
Browse files Browse the repository at this point in the history
  • Loading branch information
bfayers committed Nov 3, 2023
1 parent 8134efc commit 8ed79e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def parse_data(self, page: str, **kwargs) -> dict:
rows = soup.find("table").find("tbody").find_all("tr")
for row in rows:
cols = row.find_all("td")
bin_type = cols[2].find_all("span")[1].text
bin_type = cols[2].find_all("span")[1].text.title()
collection_date = cols[3].find_all("span")[1].text
collection_date = datetime.strptime(collection_date, "%d/%m/%Y").strftime(
date_format
Expand Down

0 comments on commit 8ed79e8

Please sign in to comment.