Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Return list of address first line
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 18, 2024
1 parent 0e0d45c commit 079dc28
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/sources/rosetta/lib/response_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,7 @@ def contact_info(self) -> dict:
}
)
return {
"address_line_1": document("addressline1")
.text()
.replace("<br /><br />", ", ")
.replace("<br />", ", ")
or None,
"address_line_1": [line for line in document("addressline1").text().split("<br />") if line] or [],
"town": document("addresstown").text() or None,
"postcode": document("postcode").text() or None,
"country": document("addresscountry").text() or None,
Expand Down

0 comments on commit 079dc28

Please sign in to comment.