Skip to content

Commit cffd188

Browse files
committed
Leverage the project projection which handles units.
1 parent d890f91 commit cffd188

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
@@ -201,7 +201,7 @@ def get_nested_fields(model: Type[BaseModel]):
201201
def create_nested_pipeline(model: Type[BaseModel], prefix=""):
202202
logger.debug(f"Creating nested pipeline for model: {model.__name__}, prefix: {prefix}")
203203
nested_fields = get_nested_fields(model)
204-
pipeline = {}
204+
pipeline = _get_project_projection(model)
205205
match_conditions = {}
206206

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

0 commit comments

Comments
 (0)