This commit is contained in:
Timothy J. Baek
2024-06-24 10:37:57 -07:00
parent f54a66b86b
commit 6bad71adca
2 changed files with 16 additions and 4 deletions

View File

@@ -116,6 +116,13 @@ async def get_pipe_models():
else:
function_module = app.state.FUNCTIONS[pipe.id]
if hasattr(function_module, "valves") and hasattr(function_module, "Valves"):
print(f"Getting valves for {pipe.id}")
valves = Functions.get_function_valves_by_id(pipe.id)
function_module.valves = function_module.Valves(
**(valves if valves else {})
)
# Check if function is a manifold
if hasattr(function_module, "type"):
if function_module.type == "manifold":