Skip to content

Commit

Permalink
debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jun 11, 2024
1 parent 3b46ddb commit 25f1c74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/get_associations.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ 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()
collections_query = requests.get(url, headers=headers, params={'page_size': 2000}).json()['feed']['entry']
print(url)
collections_query = requests.get(url, headers=headers, params={'page_size': 2000}).json()
print(collections_query)
results = collection_query['feed']['entry']
collections = [a.get('id') for a in collections_query]

filename = f"{env}_associations.json"
Expand Down

0 comments on commit 25f1c74

Please sign in to comment.