From dee4d7343d00122540e5b90c4eeb0010540032bb Mon Sep 17 00:00:00 2001 From: Simon Liu Date: Tue, 11 Jun 2024 10:55:46 -0700 Subject: [PATCH] revert getting associations --- tests/get_associations.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/get_associations.py b/tests/get_associations.py index 37b11b6cab..dd4d9d7db0 100644 --- a/tests/get_associations.py +++ b/tests/get_associations.py @@ -54,11 +54,8 @@ def get_associations(token, env): service_concept_id = cmr.queries.ServiceQuery(mode=mode).provider('POCLOUD').name('PODAAC L2 Cloud Subsetter').get()[0].get('concept_id') url = cmr.queries.CollectionQuery(mode=mode).service_concept_id(service_concept_id).provider('POCLOUD')._build_url() - print(url) - collections_query = requests.get(url, headers=headers, params={'page_size': 2000}).json() - print(collections_query) - results = collections_query['feed']['entry'] - collections = [a.get('id') for a in results] + collections_query = requests.get(url, headers=headers, params={'page_size': 2000}).json()['feed']['entry'] + collections = [a.get('id') for a in collections_query] filename = f"{env}_associations.json" with open(filename, 'w') as file: