Skip to content

Commit

Permalink
Merge pull request #192 from asfadmin/search_count-host-fix
Browse files Browse the repository at this point in the history
custom host now works with search_count() method
  • Loading branch information
SpicyGarlicAlbacoreRoll authored May 1, 2023
2 parents 5646a2a + f0df348 commit 51f2d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asf_search/search/search_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def search_count(

preprocess_opts(opts)

url = '/'.join(s.strip('/') for s in [f'https://{INTERNAL.CMR_HOST}', f'{INTERNAL.CMR_GRANULE_PATH}'])
url = '/'.join(s.strip('/') for s in [f'https://{opts.host}', f'{INTERNAL.CMR_GRANULE_PATH}'])

count = 0
for query in build_subqueries(opts):
Expand Down

0 comments on commit 51f2d8c

Please sign in to comment.