We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e424df commit 7a7cd13Copy full SHA for 7a7cd13
stac_fastapi/mongo/stac_fastapi/mongo/core.py
@@ -103,10 +103,15 @@ def item_collection(
103
base_url = str(kwargs["request"].base_url)
104
105
with self.client.start_session() as session:
106
- collection_children = self.item_table.find(
107
- {"collection": collection_id}, session=session
108
- ).limit(limit).sort(
109
- [("properties.datetime", pymongo.ASCENDING), ("id", pymongo.ASCENDING)]
+ collection_children = (
+ self.item_table.find({"collection": collection_id}, session=session)
+ .limit(limit)
+ .sort(
110
+ [
111
+ ("properties.datetime", pymongo.ASCENDING),
112
+ ("id", pymongo.ASCENDING),
113
+ ]
114
+ )
115
)
116
117
matched = self.item_table.count_documents({"collection": collection_id})
0 commit comments