File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
"""FastAPI application."""
2
- import attr
3
-
4
2
from stac_fastapi .api .app import StacApi
5
3
from stac_fastapi .api .models import create_get_request_model , create_post_request_model
6
4
from stac_fastapi .elasticsearch .config import ElasticsearchSettings
26
24
settings = ElasticsearchSettings ()
27
25
session = Session .create_from_settings (settings )
28
26
29
-
30
- @attr .s
31
- class FixedFilterExtension (FilterExtension ):
32
- """FilterExtension class implementation with EsAsyncBaseFiltersClient."""
33
-
34
- client = attr .ib (factory = EsAsyncBaseFiltersClient )
35
-
36
-
37
27
extensions = [
38
28
TransactionExtension (client = TransactionsClient (session = session ), settings = settings ),
39
29
BulkTransactionExtension (client = BulkTransactionsClient (session = session )),
@@ -42,7 +32,7 @@ class FixedFilterExtension(FilterExtension):
42
32
SortExtension (),
43
33
TokenPaginationExtension (),
44
34
ContextExtension (),
45
- FixedFilterExtension ( ),
35
+ FilterExtension ( client = EsAsyncBaseFiltersClient () ),
46
36
]
47
37
48
38
post_request_model = create_post_request_model (extensions )
You can’t perform that action at this time.
0 commit comments