Skip to content

Commit

Permalink
Merge pull request #228 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Handle URIs with trailing slashes
  • Loading branch information
helrond authored Jan 24, 2024
2 parents b2c9802 + fd8cea0 commit 009c9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transformer/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class SourcePackageToDigitalObject(odin.Mapping):
to_obj = ArchivesSpaceDigitalObject

def extract_id(self, uri):
return uri.split("/")[-1]
return uri.rstrip("/").split("/")[-1]

@odin.map_field(from_field="storage_uri", to_field="title")
def title(self, value):
Expand Down

0 comments on commit 009c9ba

Please sign in to comment.