Skip to content

Commit 9a48deb

Browse files
committed
Leverage the project projection which handles units.
1 parent 2010833 commit 9a48deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensensor/collection_apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def create_nested_pipeline(model: Type[BaseModel], prefix=""):
203203
match_conditions = {}
204204
pipeline = {
205205
"_id": False,
206-
"$timestamp": "$timestamp",
206+
"timestamp": "$timestamp",
207207
}
208208

209209
for field_name, field_type in model.__fields__.items():

0 commit comments

Comments
 (0)