From 384eda63e6fec6977db3f9e9ba655e0db0719578 Mon Sep 17 00:00:00 2001 From: EmmanuelMr18 Date: Sat, 6 Jul 2024 13:02:30 -0600 Subject: [PATCH] fix(image upload): skip when using the CD_BYPASS_UPLOAD env var --- custom_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_routes.py b/custom_routes.py index 6030027..bc7a6a2 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -991,7 +991,7 @@ async def update_run_with_output(prompt_id, data, node_id=None): "output_data": data } - if not bypass_upload: + if bypass_upload == False: try: have_upload = 'images' in data or 'files' in data or 'gifs' in data or 'mesh' in data print("\nhave_upload", have_upload, node_id)