From 3c76f43057f140c583962327c18c7d5257e7495c Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sat, 20 May 2023 23:06:33 -0400 Subject: [PATCH] Cleaner code. --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 18ce5430..701c0e7a 100644 --- a/server.py +++ b/server.py @@ -331,7 +331,8 @@ class PromptServer(): extra_data["client_id"] = json_data["client_id"] if valid[0]: prompt_id = str(uuid.uuid4()) - self.prompt_queue.put((number, prompt_id, prompt, extra_data, valid[2])) + outputs_to_execute = valid[2] + self.prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute)) return web.json_response({"prompt_id": prompt_id}) else: print("invalid prompt:", valid[1])