Skip to content

Commit 7a7cd13

Browse files
committed
run pre-commit
1 parent 1e424df commit 7a7cd13

File tree

1 file changed

+9
-4
lines changed
  • stac_fastapi/mongo/stac_fastapi/mongo

1 file changed

+9
-4
lines changed

stac_fastapi/mongo/stac_fastapi/mongo/core.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,15 @@ def item_collection(
103103
base_url = str(kwargs["request"].base_url)
104104

105105
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)]
106+
collection_children = (
107+
self.item_table.find({"collection": collection_id}, session=session)
108+
.limit(limit)
109+
.sort(
110+
[
111+
("properties.datetime", pymongo.ASCENDING),
112+
("id", pymongo.ASCENDING),
113+
]
114+
)
110115
)
111116

112117
matched = self.item_table.count_documents({"collection": collection_id})

0 commit comments

Comments
 (0)