From 1dfb484fd7fcb883fceef3083267ae2350496d61 Mon Sep 17 00:00:00 2001 From: hrodmn Date: Wed, 25 Sep 2024 05:47:17 -0500 Subject: [PATCH] filter -> filter_query --- stac_fastapi/pgstac/core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stac_fastapi/pgstac/core.py b/stac_fastapi/pgstac/core.py index 60fb338..ab676c6 100644 --- a/stac_fastapi/pgstac/core.py +++ b/stac_fastapi/pgstac/core.py @@ -75,7 +75,7 @@ async def all_collections( # noqa: C901 datetime=datetime, fields=fields, sortby=sortby, - filter=filter, + filter_query=filter, filter_lang=filter_lang, ) @@ -500,7 +500,7 @@ async def get_search( datetime=datetime, fields=fields, sortby=sortby, - filter=filter, + filter_query=filter, filter_lang=filter_lang, ) @@ -521,13 +521,13 @@ def clean_search_args( # noqa: C901 datetime: Optional[DateTimeType] = None, fields: Optional[List[str]] = None, sortby: Optional[str] = None, - filter: Optional[str] = None, + filter_query: Optional[str] = None, filter_lang: Optional[str] = None, ) -> Dict[str, Any]: """Clean up search arguments to match format expected by pgstac""" - if filter: + if filter_query: if filter_lang == "cql2-text": - filter = to_cql2(parse_cql2_text(filter)) + filter_query = to_cql2(parse_cql2_text(filter_query)) filter_lang = "cql2-json" if datetime: