From fece12895faa29a722503a4f6e93727e23dfccfe Mon Sep 17 00:00:00 2001 From: numz Date: Mon, 14 Oct 2024 13:18:26 +0200 Subject: [PATCH] fix bug on import workflow --- py/endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/endpoints.py b/py/endpoints.py index face6eb..cdf1055 100644 --- a/py/endpoints.py +++ b/py/endpoints.py @@ -38,7 +38,8 @@ async def workflows(request): else: os.makedirs(json_path) result["No file in worflows/api folder"] = {"inputs": {}, "outputs": {}} - + if result == {}: + result["No file in worflows/api folder"] = {"inputs": {}, "outputs": {}} return web.json_response(result, content_type='application/json')