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

Commit

Permalink
Fix some data issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 15, 2024
1 parent 8829fe6 commit 31adaa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/sources/rosetta/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def parse_results(self, raw_results, source_url):
record = RecordCreatorPerson(parsed_data.id())
record.name = parsed_data.name()
record.name_parts = parsed_data.names()
record.date = parsed_data.lifespan()
record.date = parsed_data.date()
record.gender = parsed_data.gender()
record.identifier = parsed_data.identifier()
record.functions = parsed_data.functions()
Expand Down
6 changes: 4 additions & 2 deletions app/sources/rosetta/lib/response_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def name(self) -> str:
names = self.names()
if "name" in names:
return names["name"]
return ""
return self.title() or ""

def names(self) -> dict:
names = {}
Expand Down Expand Up @@ -250,7 +250,9 @@ def contact_info(self) -> dict:
):
document = PyQuery(ephemera)
return {
"address_line_1": document("addressline1").text(),
"address_line_1": document("addressline1")
.text()
.replace("<br /><br />", ", "),
"town": document("addresstown").text(),
"postcode": document("postcode").text(),
"country": document("addresscountry").text(),
Expand Down

0 comments on commit 31adaa9

Please sign in to comment.