Skip to content

Commit

Permalink
Leverage the project projection which handles units.
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Oct 2, 2024
1 parent d890f91 commit cffd188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensensor/collection_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def get_nested_fields(model: Type[BaseModel]):
def create_nested_pipeline(model: Type[BaseModel], prefix=""):
logger.debug(f"Creating nested pipeline for model: {model.__name__}, prefix: {prefix}")
nested_fields = get_nested_fields(model)
pipeline = {}
pipeline = _get_project_projection(model)
match_conditions = {}

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

0 comments on commit cffd188

Please sign in to comment.