From 24c7990fd4440b5c4734d8713302f47cd2a64c67 Mon Sep 17 00:00:00 2001 From: Michael Poluektov Date: Wed, 3 Jul 2024 09:12:00 +0100 Subject: [PATCH] revert not delete on pipe --- backend/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index b2fe38245..91b2495f6 100644 --- a/backend/main.py +++ b/backend/main.py @@ -833,10 +833,7 @@ def filter_pipeline(payload, user): else: pass - keep_extras = ( - "pipeline" in app.state.MODELS[model_id] or "pipe" in app.state.MODELS[model_id] - ) - if not keep_extras: + if "pipeline" not in app.state.MODELS[model_id]: for key in ["title", "task", "function"]: if key in payload: del payload[key]