Skip to content

Commit 5a316da

Browse files
authored
Merge pull request #418 from PNNL-CompBio/417-possible-issue-with-figshare-download
updated api call to figshare for file download
2 parents a69bd57 + 4d94502 commit 5a316da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

coderdata/download/downloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def download(
8787

8888
for file_name, file_data in unique_files.items():
8989
file_info = file_data['file_info']
90-
file_url = file_info['download_url']
90+
file_id = str(file_info['id'])
91+
file_url = "https://api.figshare.com/v2/file/download/" + file_id
9192
file_md5sum = file_info['supplied_md5']
9293
retry_count = 10
9394
# Download the file

0 commit comments

Comments
 (0)