Skip to content

Commit

Permalink
Update *Zenodo* records query url.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Oct 20, 2023
1 parent 8f556ba commit 3bda77a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion colour_datasets/records/tests/test_zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def setUp(self):
"https://zenodo.org/api/communities/colour-science-datasets"
)
records_data = json_open(
"https://zenodo.org/api/records/?q=communities:"
"https://zenodo.org/api/records?q=communities:"
"colour-science-datasets-tests"
)

Expand Down
8 changes: 4 additions & 4 deletions colour_datasets/records/zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ class Community(Mapping):
... "https://zenodo.org/api/communities/colour-science-datasets"
... )
>>> records_data = json_open(
... "https://zenodo.org/api/records/?q=communities:"
... "https://zenodo.org/api/records?q=communities:"
... "colour-science-datasets"
... )
>>> community = Community(
Expand Down Expand Up @@ -828,12 +828,12 @@ def from_id(
community_url = (
f"{configuration.api_url}/communities/{configuration.community}"
)
# NOTE: Retrieving 512 datasets at most. This should cover needs for
# NOTE: Retrieving 256 datasets at most. This should cover needs for
# the foreseeable future. There is likely an undocumented hard limit on
# "Zenodo" server side.
records_url = (
f"{configuration.api_url}/records/"
f"?q=communities:{configuration.community}&size=512"
f"{configuration.api_url}/records"
f"?q=communities:{configuration.community}&size=256"
)

community_json_filename = os.path.join(
Expand Down

0 comments on commit 3bda77a

Please sign in to comment.