Skip to content

Commit 5b3a2ee

Browse files
committed
use CollectionSearchExtension.from_extensions()
1 parent 9ea7b33 commit 5b3a2ee

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"orjson",
1111
"pydantic",
1212
"stac_pydantic==3.1.*",
13-
"stac-fastapi.api~=3.0",
14-
"stac-fastapi.extensions~=3.0",
15-
"stac-fastapi.types~=3.0",
13+
"stac-fastapi.api~=3.0.2",
14+
"stac-fastapi.extensions~=3.0.2",
15+
"stac-fastapi.types~=3.0.2",
1616
"asyncpg",
1717
"buildpg",
1818
"brotli_asgi",

stac_fastapi/pgstac/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@
7272
items_get_request_model = ItemCollectionUri
7373

7474
if "collection_search" in _enabled_extensions:
75-
collection_extension = CollectionSearchExtension()
75+
collection_extension = CollectionSearchExtension.from_extensions(
76+
extensions=extensions
77+
)
7678
collections_get_request_model = collection_extension.GET
7779
extensions.append(collection_extension)
7880
else:

0 commit comments

Comments
 (0)