diff --git a/app/routes/datasets/queries.py b/app/routes/datasets/queries.py index f1f3de83a..8964c8dff 100755 --- a/app/routes/datasets/queries.py +++ b/app/routes/datasets/queries.py @@ -88,7 +88,7 @@ # Datasets that require admin privileges to do a query. (Extra protection on # commercial datasets which shouldn't be downloaded in any way.) -PROTECTED_QUERY_DATASETS = ["licensed_wdpa_protected_areas"] +PROTECTED_QUERY_DATASETS = ["wdpa_licensed_protected_areas"] @router.get( "/{dataset}/{version}/query", diff --git a/tests_v2/conftest.py b/tests_v2/conftest.py index 0620728c4..4340865d8 100755 --- a/tests_v2/conftest.py +++ b/tests_v2/conftest.py @@ -300,7 +300,7 @@ async def licensed_dataset( """Create licensed dataset.""" # Create dataset - dataset_name: str = "licensed_wdpa_protected_areas" + dataset_name: str = "wdpa_licensed_protected_areas" await async_client.put( f"/dataset/{dataset_name}", json={"metadata": DATASET_METADATA}