Skip to content

Commit

Permalink
handle pagination - needed for Stieger2021 ds (#674)
Browse files Browse the repository at this point in the history
* handle pagination - needed for Stieger2021 ds

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Fixed pagmatation problem for Stieger2021 by changing the URL

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bru <[email protected]>
  • Loading branch information
3 people authored Jan 28, 2025
1 parent b95e9b2 commit 0c2cd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moabb/datasets/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ def fs_get_file_list(article_id, version=None):
"""
fsurl = "https://api.figshare.com/v2"
if version is None:
url = fsurl + "/articles/{}/files".format(article_id)
url = fsurl + "/articles/{}".format(article_id)
headers = {"Content-Type": "application/json"}
response = fs_issue_request("GET", url, headers=headers)
return response
return response["files"]
else:
url = fsurl + "/articles/{}/versions/{}".format(article_id, version)
headers = {"Content-Type": "application/json"}
Expand Down

0 comments on commit 0c2cd0a

Please sign in to comment.