Skip to content

Commit

Permalink
fix cql2text parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfisher-geo committed Jul 22, 2024
1 parent c88fcd0 commit 7e548f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def metric_agg(self, es_aggs, name, data_type):
def get_filter(self, filter, filter_lang):
"""Format the filter parameter in cql2-json or cql2-text."""
if filter_lang == "cql2-text":
return orjson.loads(unquote_plus(to_cql2(parse_cql2_text(filter))))
return orjson.loads(to_cql2(parse_cql2_text(filter)))
elif filter_lang == "cql2-json":
if isinstance(filter, str):
return orjson.loads(unquote_plus(filter))
Expand Down

0 comments on commit 7e548f9

Please sign in to comment.