This commit is contained in:
Timothy J. Baek
2024-07-03 23:39:16 -07:00
parent 37a5d2c06b
commit 8fe2a7bb75
2 changed files with 9 additions and 2 deletions

View File

@@ -119,7 +119,8 @@ class ToolsTable:
return None
def get_tools(self) -> List[ToolModel]:
return [ToolModel.model_validate(tool) for tool in db.query(Tool).all()]
with get_db() as db:
return [ToolModel.model_validate(tool) for tool in db.query(Tool).all()]
def get_tool_valves_by_id(self, id: str) -> Optional[dict]:
try: