Skip to content

Commit ed282c6

Browse files
committed
Fixing formatting.
1 parent 5c723e4 commit ed282c6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/stac_fastapi_pgstac_pair_search/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ def _sanitize_pair_search_request(
161161
def _fix_input_filter(query):
162162
if isinstance(query, dict):
163163
if "op" in query and "args" in query:
164-
query["args"] = [
165-
_fix_input_filter(item) for item in query["args"]
166-
]
164+
query["args"] = [_fix_input_filter(item) for item in query["args"]]
167165
elif "duration" in query:
168166
# expand duration as an operator
169167
return {"op": "duration", "args": [query["duration"]]}
@@ -195,9 +193,9 @@ def _fix_filter(query):
195193
try:
196194
filter_ = json.loads(query["filter"])
197195
except json.decoder.JSONDecodeError:
198-
pass # assuming CQL2-text
196+
pass # assuming CQL2-text
199197
filter_ = _fix_input_filter(filter_)
200-
filter_ = Expr(filter_).to_json() # handles all CQL2 types
198+
filter_ = Expr(filter_).to_json() # handles all CQL2 types
201199
filter_ = _fix_filter(filter_)
202200
query["filter"] = filter_
203201
query["filter_lang"] = "cql2-json"

0 commit comments

Comments
 (0)