Skip to content

Commit

Permalink
Strip trailing slash from viaf id when initializing viaf entity #801
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Apr 17, 2024
1 parent 0651e05 commit 7773279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mep/people/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def viaf(self):
""":class:`viapy.api.ViafEntity` for this record if :attr:`viaf_id`
is set."""
if self.viaf_id:
return ViafEntity(self.viaf_id)
return ViafEntity(self.viaf_id.strip("/"))

@property
def short_name(self):
Expand Down

0 comments on commit 7773279

Please sign in to comment.