From 42556c8dbbb54a320a876846cd06b50f3f6413ef Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 26 Jul 2023 18:33:35 +0300 Subject: [PATCH] Pipelines children query now looks for pipeline projects and not tasks --- apiserver/bll/project/project_bll.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apiserver/bll/project/project_bll.py b/apiserver/bll/project/project_bll.py index 89ec018..a28b756 100644 --- a/apiserver/bll/project/project_bll.py +++ b/apiserver/bll/project/project_bll.py @@ -933,7 +933,10 @@ class ProjectBLL: & Q(system_tags__in=[dataset_tag], basename__ne=datasets_project_name) } elif children_type == ProjectChildrenType.pipeline: - child_queries = {Task: child_query & Q(system_tags__in=[pipeline_tag])} + child_queries = { + Project: child_query + & Q(system_tags__in=[pipeline_tag], basename__ne=pipelines_project_name) + } elif children_type == ProjectChildrenType.report: child_queries = {Task: child_query & Q(system_tags__in=[reports_tag])} else: