فهرست منبع

revert not delete on pipe

Michael Poluektov 10 ماه پیش
والد
کامیت
24c7990fd4
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      backend/main.py

+ 1 - 4
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]