Skip to content

Commit

Permalink
Fix file link
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 authored Sep 30, 2024
1 parent 7c418ae commit 123ce7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datahugger/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,10 @@ class B2shareDataset(DatasetDownloader):
API_URL_META = "{api_url}records/{record_id}"
META_FILES_JSONPATH = "files[*]"


# paths to file attributes
ATTR_NAME_JSONPATH = "key"
ATTR_FILE_LINK_JSONPATH = "ePIC_PID"
ATTR_SIZE_JSONPATH = "size"
ATTR_HASH_JSONPATH = "checksum"
ATTR_HASH_TYPE_VALUE = "md5"

def _get_attr_link(self, record, base_url=None):
return f"{base_url}/files/{self._params['record_id']}/{record['key']}"

0 comments on commit 123ce7d

Please sign in to comment.