Добавил модули
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from modules.handlers.base.handler_base import HandlerBase
|
||||
|
||||
class GetPipelines(HandlerBase):
|
||||
def __init__(self):
|
||||
super().__init__("get_pipelines")
|
||||
|
||||
def do(self, context, parameters):
|
||||
result = []
|
||||
|
||||
for name, pipeline in context.pipeline_manager.pipelines.items():
|
||||
item = {
|
||||
"name": pipeline.name,
|
||||
"pipes": [pipe.name for pipe in pipeline.pipes if pipe.name[0] != "_"]
|
||||
}
|
||||
|
||||
result.append(item)
|
||||
|
||||
return result
|
||||
Reference in New Issue
Block a user