Skip to content

Commit 5cc5f93

Browse files
committed
attempt to get relay nested model retrieval
1 parent 773efc5 commit 5cc5f93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ USER opensensor-api
3838
ENV TZ=UTC
3939

4040
# Start opensensor API
41-
CMD ["/usr/src/.venv/bin/uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8010", "--workers", "4", "--timeout-keep-alive", "30"]
41+
CMD ["/usr/src/.venv/bin/uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8010", "--workers", "4", "--timeout-keep-alive", "30", "--log-level", "info"]

opensensor/collection_apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def create_nested_pipeline(model: Type[BaseModel], prefix=""):
226226
"input": f"${full_field_name}",
227227
"as": "item",
228228
"in": {
229-
k: f"$item.{v.replace('$', '')}" for k, v in nested_pipeline.items()
229+
k: f"$$item.{v.replace('$', '')}" for k, v in nested_pipeline.items()
230230
},
231231
}
232232
}

0 commit comments

Comments
 (0)