File tree Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 8888 extensions = extensions + [collection_search_extension ]
8989 if collection_search_extension
9090 else extensions ,
91- client = CoreCrudClient (
92- post_request_model = post_request_model , # type: ignore
93- collections_get_request_model = collections_get_request_model , # type: ignore
94- ),
91+ client = CoreCrudClient (post_request_model = post_request_model ), # type: ignore
9592 response_class = ORJSONResponse ,
9693 items_get_request_model = items_get_request_model ,
9794 search_get_request_model = get_request_model ,
Original file line number Diff line number Diff line change 1414from pygeofilter .backends .cql2_json import to_cql2
1515from pygeofilter .parsers .cql2_text import parse as parse_cql2_text
1616from pypgstac .hydration import hydrate
17- from stac_fastapi .api .models import APIRequest , EmptyRequest , JSONResponse
17+ from stac_fastapi .api .models import JSONResponse
1818from stac_fastapi .types .core import AsyncBaseCoreClient , Relations
1919from stac_fastapi .types .errors import InvalidQueryParameter , NotFoundError
2020from stac_fastapi .types .requests import get_base_url
3939class CoreCrudClient (AsyncBaseCoreClient ):
4040 """Client for core endpoints defined by stac."""
4141
42- collections_get_request_model : APIRequest = attr .ib (default = EmptyRequest )
43-
4442 async def all_collections ( # noqa: C901
4543 self ,
4644 request : Request ,
Original file line number Diff line number Diff line change @@ -736,10 +736,7 @@ async def get_collection(
736736 )
737737
738738 api = StacApi (
739- client = Client (
740- post_request_model = post_request_model ,
741- collections_get_request_model = collection_search_extension .GET ,
742- ),
739+ client = Client (post_request_model = post_request_model ),
743740 settings = settings ,
744741 extensions = extensions ,
745742 search_post_request_model = post_request_model ,
Original file line number Diff line number Diff line change @@ -155,10 +155,7 @@ def api_client(request, database):
155155 api = StacApi (
156156 settings = api_settings ,
157157 extensions = extensions + [collection_search_extension ],
158- client = CoreCrudClient (
159- post_request_model = search_post_request_model ,
160- collections_get_request_model = collections_get_request_model ,
161- ),
158+ client = CoreCrudClient (post_request_model = search_post_request_model ),
162159 items_get_request_model = items_get_request_model ,
163160 search_get_request_model = search_get_request_model ,
164161 search_post_request_model = search_post_request_model ,
You can’t perform that action at this time.
0 commit comments