Skip to content

Commit a70356b

Browse files
committed
clean up
1 parent fad578e commit a70356b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ async def all_collections(
286286
parsed_query = None
287287
if query is not None:
288288
try:
289-
import orjson
290-
291289
parsed_query = orjson.loads(query)
292290
except Exception as e:
293291
raise HTTPException(
@@ -299,7 +297,6 @@ async def all_collections(
299297
if filter_expr is not None:
300298
try:
301299
# Only raise an error for explicitly unsupported filter languages
302-
# Allow None, cql2-json, and cql2-text (we'll treat it as JSON)
303300
if filter_lang is not None and filter_lang not in [
304301
"cql2-json",
305302
"cql2-text",

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ async def get_all_collections(
307307
elif op == "contains":
308308
# Contains operator for arrays
309309
query_parts.append({"term": {field_name: value}})
310+
310311
except Exception as e:
311312
logger = logging.getLogger(__name__)
312313
logger.error(f"Error converting query to Elasticsearch: {e}")

0 commit comments

Comments
 (0)