From 3bda77ac347a1853e16b6fba97394d14d6e80b58 Mon Sep 17 00:00:00 2001 From: Thomas Mansencal Date: Sat, 21 Oct 2023 08:58:42 +1300 Subject: [PATCH] Update *Zenodo* records query url. --- colour_datasets/records/tests/test_zenodo.py | 2 +- colour_datasets/records/zenodo.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/colour_datasets/records/tests/test_zenodo.py b/colour_datasets/records/tests/test_zenodo.py index 1bf095f..e41990c 100644 --- a/colour_datasets/records/tests/test_zenodo.py +++ b/colour_datasets/records/tests/test_zenodo.py @@ -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" ) diff --git a/colour_datasets/records/zenodo.py b/colour_datasets/records/zenodo.py index 0eaad9b..b9d04da 100644 --- a/colour_datasets/records/zenodo.py +++ b/colour_datasets/records/zenodo.py @@ -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( @@ -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(