mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
- Added var plugin implementation files (get, set, delete, exists) - Updated .gitignore to not ignore backend/autometabuilder/workflow/plugins/var/ - These files were created but not committed due to gitignore pattern Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
16 lines
433 B
Python
16 lines
433 B
Python
"""Workflow plugin: delete variable from workflow store."""
|
|
|
|
|
|
def run(runtime, inputs):
|
|
"""Delete variable from workflow store."""
|
|
key = inputs.get("key")
|
|
|
|
if key is None:
|
|
return {"result": False, "deleted": False, "error": "key is required"}
|
|
|
|
if key in runtime.store:
|
|
del runtime.store[key]
|
|
return {"result": True, "deleted": True}
|
|
|
|
return {"result": False, "deleted": False}
|