Skip to content

Commit 2c64fc2

Browse files
committed
fix rebase issues
1 parent 0a2c6d9 commit 2c64fc2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CHANGES.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
## [Unreleased]
44

5-
<<<<<<< HEAD
65
- Enable filter extension for `GET /items` requests and add `Queryables` links in `/collections` and `/collections/{collection_id}` responses ([#89](https://github.com/stac-utils/stac-fastapi-pgstac/pull/89))
7-
=======
86
- Add collection search extension
9-
>>>>>>> 9b2050a (add collection search extension)
107

118
## [3.0.0a4] - 2024-07-10
129

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)