From 90df5146a89b854a8dac070c568a6b98f02aeea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9B=AA=E5=B3=B0?= Date: Wed, 10 Jan 2024 21:22:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=AD=E4=BB=BB=E5=8A=A1=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easyapi/api.py | 4 ++-- static/js/workflows.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/easyapi/api.py b/easyapi/api.py index bfac97c..f5f1ef0 100644 --- a/easyapi/api.py +++ b/easyapi/api.py @@ -108,8 +108,8 @@ def register_routes(): prompt_id = json_data["prompt_id"] current_queue = PromptServer.instance.prompt_queue.get_current_queue() queue_running = current_queue[0] - if queue_running is not None: - if queue_running[1] == prompt_id: + if queue_running is not None and len(queue_running) > 0: + if len(queue_running[0]) > 0 and queue_running[0][1] == prompt_id: nodes.interrupt_processing() delete_func = lambda a: a[1] == prompt_id diff --git a/static/js/workflows.js b/static/js/workflows.js index 75dd7ab..6c733fb 100644 --- a/static/js/workflows.js +++ b/static/js/workflows.js @@ -56,6 +56,7 @@ class EasyApiWorkflows { "channel": "red" } } + delete output[o]['_meta'] } return output }