From 079dc28976bab949ba0e763ffcc6d1fe0113c170 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 18 Jan 2024 18:55:57 +0000 Subject: [PATCH] Return list of address first line --- app/sources/rosetta/lib/response_parser.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/sources/rosetta/lib/response_parser.py b/app/sources/rosetta/lib/response_parser.py index 89180ea..43460c8 100644 --- a/app/sources/rosetta/lib/response_parser.py +++ b/app/sources/rosetta/lib/response_parser.py @@ -371,11 +371,7 @@ def contact_info(self) -> dict: } ) return { - "address_line_1": document("addressline1") - .text() - .replace("

", ", ") - .replace("
", ", ") - or None, + "address_line_1": [line for line in document("addressline1").text().split("
") if line] or [], "town": document("addresstown").text() or None, "postcode": document("postcode").text() or None, "country": document("addresscountry").text() or None,