Skip to content

Commit 491e39f

Browse files
committed
translate cql2 json
1 parent 72ff9de commit 491e39f

File tree

1 file changed

+6
-1
lines changed
  • stac_fastapi/mongo/stac_fastapi/mongo

1 file changed

+6
-1
lines changed

stac_fastapi/mongo/stac_fastapi/mongo/app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
)
2121
from stac_fastapi.extensions.third_party import BulkTransactionExtension
2222
from stac_fastapi.mongo.config import AsyncMongoDBSettings
23-
from stac_fastapi.mongo.database_logic import DatabaseLogic, create_collection_index
23+
from stac_fastapi.mongo.database_logic import (
24+
DatabaseLogic,
25+
create_collection_index,
26+
create_item_index,
27+
)
2428

2529
settings = AsyncMongoDBSettings()
2630
session = Session.create_from_settings(settings)
@@ -71,6 +75,7 @@
7175
@app.on_event("startup")
7276
async def _startup_event() -> None:
7377
await create_collection_index()
78+
await create_item_index()
7479

7580

7681
def run() -> None:

0 commit comments

Comments
 (0)