Skip to content

Commit

Permalink
Use hash for content_id
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Dec 17, 2024
1 parent 96057f9 commit fda5339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo2docker/contentproviders/dataverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ def fetch(self, spec, output_dir, yield_output=False):
@property
def content_id(self):
"""The Dataverse persistent identifier."""
return self.url
return hashlib.sha256(self.url.encode()).hexdigest()

0 comments on commit fda5339

Please sign in to comment.