Skip to content

Commit 1dc73d0

Browse files
committed
fix: pre comit
1 parent 6659efb commit 1dc73d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stac_fastapi/eodag/models/links.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""link helpers."""
1919

2020
from typing import Any, Optional
21-
from urllib.parse import ParseResult, parse_qs, unquote, urlencode, urljoin, urlparse
21+
from urllib.parse import ParseResult, parse_qs, quote, unquote, urlencode, urljoin, urlparse
2222

2323
import attr
2424
import orjson
@@ -28,7 +28,7 @@
2828
from starlette.requests import Request
2929

3030
from eodag.utils import update_nested_dict
31-
from urllib.parse import quote
31+
3232
# These can be inferred from the item/collection so they aren't included in the database
3333
# Instead they are dynamically generated when querying the database using the classes defined below
3434
INFERRED_LINK_RELS = ["self", "item", "collection"]
@@ -164,11 +164,11 @@ def link_next(self) -> Optional[dict[str, Any]]:
164164

165165
if method == "GET":
166166
params = {"token": [str(self.next)]}
167-
existing_query={}
167+
existing_query = {}
168168
if "query" in self.request.query_params:
169169
existing_query = orjson.loads(self.request.query_params["query"])
170170
combined_query = {**existing_query, **federation_filter.get("query", {})}
171-
query_json = orjson.dumps(combined_query).decode()
171+
query_json = orjson.dumps(combined_query).decode()
172172
params["query"] = [quote(query_json)]
173173
# params["query"] = [orjson.dumps(combined_query)]
174174
link["href"] = merge_params(self.url, params)

0 commit comments

Comments
 (0)