1
0
Эх сурвалжийг харах

revert not delete on pipe

Michael Poluektov 1 жил өмнө
parent
commit
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:
             else:
                 pass
                 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"]:
         for key in ["title", "task", "function"]:
             if key in payload:
             if key in payload:
                 del payload[key]
                 del payload[key]