From ee8efd0b6bf6c108559ad4cb610c7958eaa4d377 Mon Sep 17 00:00:00 2001 From: BennyKok Date: Thu, 28 Dec 2023 14:38:35 +0800 Subject: [PATCH] fix(plugin): python error --- custom_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_routes.py b/custom_routes.py index 1297c67..0400ce5 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -342,7 +342,7 @@ async def update_run_with_output(prompt_id, data, node_id=None): files = data.get('files', []) for file in files: - await upload_file(prompt_id, file.get("filename"), subfolder=file.get("subfolder"), type=file.get("type"), content_type=image.get("content_type", "image/png")) + await upload_file(prompt_id, file.get("filename"), subfolder=file.get("subfolder"), type=file.get("type"), content_type=file.get("content_type", "image/png")) if have_upload: await update_file_status(prompt_id, data, False, node_id=node_id)