Skip to content

Commit

Permalink
fix: 修复函数库节点为输出节点时类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Aug 15, 2024
1 parent 19b07e9 commit 845ee52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def write_context(step_variable: Dict, global_variable: Dict, node, workflow):
for key in step_variable:
node.context[key] = step_variable[key]
if workflow.is_result() and 'result' in step_variable:
result = step_variable['result'] + '\n'
result = str(step_variable['result']) + '\n'
yield result
workflow.answer += result
node.context['run_time'] = time.time() - node.context['start_time']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def write_context(step_variable: Dict, global_variable: Dict, node, workflow):
for key in step_variable:
node.context[key] = step_variable[key]
if workflow.is_result() and 'result' in step_variable:
result = step_variable['result'] + '\n'
result = str(step_variable['result']) + '\n'
yield result
workflow.answer += result
node.context['run_time'] = time.time() - node.context['start_time']
Expand Down

0 comments on commit 845ee52

Please sign in to comment.