Skip to content

Commit 7e548f9

Browse files
fix cql2text parsing
1 parent c88fcd0 commit 7e548f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stac_fastapi/core/stac_fastapi/core/extensions/aggregation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def metric_agg(self, es_aggs, name, data_type):
271271
def get_filter(self, filter, filter_lang):
272272
"""Format the filter parameter in cql2-json or cql2-text."""
273273
if filter_lang == "cql2-text":
274-
return orjson.loads(unquote_plus(to_cql2(parse_cql2_text(filter))))
274+
return orjson.loads(to_cql2(parse_cql2_text(filter)))
275275
elif filter_lang == "cql2-json":
276276
if isinstance(filter, str):
277277
return orjson.loads(unquote_plus(filter))

0 commit comments

Comments
 (0)