Skip to content

Commit 8038795

Browse files
fix: support count with unbounded results
1 parent 3ce8032 commit 8038795

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SearchAPI/application/asf_opts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async def process_search_request(request: Request) -> SearchOptsModel:
177177

178178
try:
179179
# we are no longer allowing unbounded searches
180-
if query_opts.granule_list is None and query_opts.product_list is None and output != 'python':
180+
if query_opts.granule_list is None and query_opts.product_list is None and output not in ['python', 'count']:
181181
if query_opts.maxResults is None:
182182
maxResults = asf.search_count(opts=query_opts)
183183
if maxResults > 2000:

0 commit comments

Comments
 (0)