From 8dddc4d0cb3a0f8cd8f25497da74de58415fe484 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Fri, 13 Jan 2023 01:12:50 +0000 Subject: [PATCH] User: alex@sartography.com clicked save for misc/service-tests/bamboo/bamboo_all_depts_divs.bpmn --- .../bamboo/bamboo_all_depts_divs.bpmn | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/misc/service-tests/bamboo/bamboo_all_depts_divs.bpmn b/misc/service-tests/bamboo/bamboo_all_depts_divs.bpmn index e7045248..26d8cd1f 100644 --- a/misc/service-tests/bamboo/bamboo_all_depts_divs.bpmn +++ b/misc/service-tests/bamboo/bamboo_all_depts_divs.bpmn @@ -381,25 +381,27 @@ departments_and_divisions = { # Separate Depoartment and Division lists, as needed if is_bamboo_dept_list or is_bamboo_dept_enum_list: departments = departments_and_divisions.get("Department", []) - - if is_bamboo_dept_list: - dept_list = [{"id": x["id"], "name": x["name"]} for x in departments] + dept_list = [{"id": x["id"], "name": x["name"]} for x in departments] if is_bamboo_dept_enum_list: dept_enum_list = [{"label": y["name"], "value": str(y["id"])} for y in dept_list] + if not(is_bamboo_dept_list): + del(dept_list) + if not(is_bamboo_dept): del(departments) if is_bamboo_div_list or is_bamboo_div_enum_list: divisions = departments_and_divisions.get("Division", []) - - if is_bamboo_div_list: - div_list = [{"id": x["id"], "name": x["name"]} for x in divisions] + div_list = [{"id": x["id"], "name": x["name"]} for x in divisions] if is_bamboo_div_enum_list: div_enum_list = [{"label": y["name"], "value": str(y["id"])} for y in div_list] + if not(is_bamboo_div_list): + del(div_list) + if not(is_bamboo_div): del(divisions)