Skip to content

Commit 6a95c8e

Browse files
committed
remove unused code block
1 parent 97afd4c commit 6a95c8e

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,6 @@ async def get_all_collections(
337337
else {"bool": {"must": query_parts}}
338338
)
339339

340-
# Create a copy of the body for count query (without pagination and sorting)
341-
count_body = body.copy()
342-
if "search_after" in count_body:
343-
del count_body["search_after"]
344-
count_body["size"] = 0
345-
346340
# Create async tasks for both search and count
347341
search_task = asyncio.create_task(
348342
self.client.search(

stac_fastapi/opensearch/stac_fastapi/opensearch/database_logic.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,6 @@ async def get_all_collections(
321321
else {"bool": {"must": query_parts}}
322322
)
323323

324-
# Create a copy of the body for count query (without pagination and sorting)
325-
count_body = body.copy()
326-
if "search_after" in count_body:
327-
del count_body["search_after"]
328-
count_body["size"] = 0
329-
330324
# Create async tasks for both search and count
331325
search_task = asyncio.create_task(
332326
self.client.search(

0 commit comments

Comments
 (0)