From cb877f053098330617ddb47a28999d2c58566464 Mon Sep 17 00:00:00 2001 From: Wanghanying <2310016173@qq.com> Date: Wed, 11 Dec 2024 22:45:54 +0800 Subject: [PATCH] modify the code --- tools/convert_to_bizyair.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/convert_to_bizyair.py b/tools/convert_to_bizyair.py index 30572249..347da121 100644 --- a/tools/convert_to_bizyair.py +++ b/tools/convert_to_bizyair.py @@ -123,7 +123,7 @@ def get_trans_format(inputs: dict): return "workflow_api" -def workflow_convert(inputs: dict, status): +def workflow_convert(inputs: dict): nodes = inputs["nodes"] for node in nodes: class_type = node["type"] @@ -156,9 +156,8 @@ def workflow_convert(inputs: dict, status): "is_converted": is_converted, } ) - assert is_converted == True - return (inputs, status) + return inputs def workflow_api_convert(inputs: dict): @@ -180,7 +179,6 @@ def workflow_api_convert(inputs: dict): "is_converted": is_converted, } ) - assert is_converted == True return inputs