fix: Use dict keys for all RealDictCursor row access in Phase 2 code
This commit is contained in:
1 parent
0725461056
commit
ac2e7cf5bb
2 files changed
+5
-5
No files matched your search
@@ -80,7 +80,7 @@ async def execute_workflow(
|
||||
if not row:
|
||||
raise ValueError(f"Workflow not found: {workflow_id}")
|
||||
|
||||
graph_json = row[0]
|
||||
graph_json = row['graph']
|
||||
|
||||
# 2. Parse Graph
|
||||
graph = parse_workflow_graph(graph_json)
|
||||
@@ -309,7 +309,7 @@ async def load_prompt_template(prompt_slug: str, context: Dict[str, Any]) -> str
|
||||
if not row:
|
||||
raise ValueError(f"Prompt not found: {prompt_slug}")
|
||||
|
||||
template = row[0]
|
||||
template = row['template']
|
||||
|
||||
# Resolve Placeholders
|
||||
profile_id = context.get("profile_id")
|
||||
|
||||
Reference in new issue
Block a user