File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7272 items_get_request_model = ItemCollectionUri
7373
7474if "collection_search" in _enabled_extensions :
75- collection_extension = CollectionSearchExtension .from_extensions (
75+ collection_search_extension = CollectionSearchExtension .from_extensions (
7676 extensions = extensions
7777 )
78- collections_get_request_model = collection_extension .GET
79- extensions .append (collection_extension )
78+ collections_get_request_model = collection_search_extension .GET
8079else :
80+ collection_search_extension = None
8181 collections_get_request_model = EmptyRequest
8282
8383post_request_model = create_post_request_model (extensions , base_model = PgstacSearch )
8484get_request_model = create_get_request_model (extensions )
8585
8686api = StacApi (
8787 settings = settings ,
88- extensions = extensions ,
88+ extensions = extensions + [ collection_search_extension ] ,
8989 client = CoreCrudClient (post_request_model = post_request_model ), # type: ignore
9090 response_class = ORJSONResponse ,
9191 items_get_request_model = items_get_request_model ,
You can’t perform that action at this time.
0 commit comments