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

Commit

Permalink
Add link to current mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 18, 2024
1 parent e55ce99 commit 0864dbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/sources/rosetta/lib/response_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def __new__(cls, rosetta_data: dict, source_item: int = 0):


class RosettaSourceParser:
# Current mapping: https://github.com/nationalarchives/ds-infrastructure-ciim/blob/main/kubernetes/rosetta-staging/config/jpt.json

def __init__(self, rosetta_data_source):
self.source = rosetta_data_source

Expand Down Expand Up @@ -140,7 +142,7 @@ def name(self) -> str | None:
names = self.names()
if "name" in names:
return names["name"]
return self.title() or None
return None

def names(self) -> dict:
names = {}
Expand Down

0 comments on commit 0864dbe

Please sign in to comment.