Skip to content

Commit 7dca230

Browse files
committed
fix rebase issues
1 parent 8a1e023 commit 7dca230

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stac_fastapi/pgstac/core.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import re
44
from typing import Any, Dict, List, Optional, Set, Union
5-
from urllib.parse import unquote_plus
5+
from urllib.parse import unquote_plus, urljoin
66

77
import attr
88
import orjson
@@ -17,11 +17,12 @@
1717
from stac_fastapi.extensions.core.collection_search.request import (
1818
BaseCollectionSearchPostRequest,
1919
)
20-
from stac_fastapi.types.core import AsyncBaseCoreClient
20+
from stac_fastapi.types.core import AsyncBaseCoreClient, Relations
2121
from stac_fastapi.types.errors import InvalidQueryParameter, NotFoundError
22+
from stac_fastapi.types.requests import get_base_url
2223
from stac_fastapi.types.rfc3339 import DateTimeType
2324
from stac_fastapi.types.stac import Collection, Collections, Item, ItemCollection
24-
from stac_pydantic.shared import BBox
25+
from stac_pydantic.shared import BBox, MimeTypes
2526

2627
from stac_fastapi.pgstac.config import Settings
2728
from stac_fastapi.pgstac.models.links import (
@@ -111,7 +112,7 @@ async def _collection_search_base( # noqa: C901
111112
Returns:
112113
All collections which match the search criteria.
113114
"""
114-
115+
base_url = get_base_url(request)
115116
search_request_json = search_request.model_dump_json(
116117
exclude_none=True, by_alias=True
117118
)

0 commit comments

Comments
 (0)