Unverified Commit 09514751 authored by Michael Poluektov's avatar Michael Poluektov Committed by GitHub
Browse files

Update main.py

parent afd74213
...@@ -834,11 +834,9 @@ def filter_pipeline(payload, user): ...@@ -834,11 +834,9 @@ def filter_pipeline(payload, user):
pass pass
if "pipeline" not in app.state.MODELS[model_id]: if "pipeline" not in app.state.MODELS[model_id]:
if "title" in payload: for key in ["title", "task", "function"]:
del payload["title"] if key in payload:
del payload[key]
if "task" in payload:
del payload["task"]
return payload return payload
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment