Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 20, 2024
1 parent 16d2518 commit 62698ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions datahugger/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def _get_files_recursive(self, url, folder_name=None, base_url=None):

# get the data from URL
res = requests.get(url)
res.raise_for_status()
response = res.json()

# find path to raw files
Expand Down
2 changes: 1 addition & 1 deletion datahugger/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class MendeleyDataset(DatasetDownloader):
class OSFDataset(DatasetDownloader):
"""Downloader for OSF repository."""

REGEXP_ID = r"osf\.io\/(?P<record_id>.*)/{0,1}"
REGEXP_ID = r"osf\.io\/(?P<record_id>[^\/]*)\/{0,1}"

# the base entry point of the REST API
API_URL = "https://api.osf.io/v2/nodes/"
Expand Down

0 comments on commit 62698ef

Please sign in to comment.