From b7ccb952d84440f408f8572e9304db88cc6f6e58 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 15 Aug 2024 18:31:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=BA=93=E8=8A=82=E7=82=B9=E4=B8=BA=E8=BE=93=E5=87=BA=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=97=B6=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step_node/function_lib_node/impl/base_function_lib_node.py | 2 +- .../flow/step_node/function_node/impl/base_function_node.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py b/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py index 31c1ab3d33..2d7b32883f 100644 --- a/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py +++ b/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py @@ -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'] diff --git a/apps/application/flow/step_node/function_node/impl/base_function_node.py b/apps/application/flow/step_node/function_node/impl/base_function_node.py index fe0bdb3f84..a863d601bd 100644 --- a/apps/application/flow/step_node/function_node/impl/base_function_node.py +++ b/apps/application/flow/step_node/function_node/impl/base_function_node.py @@ -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']