Skip to content

Commit 992a5fb

Browse files
committed
futzed with proj_utils.py
1 parent ff90310 commit 992a5fb

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

pyral/proj_utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def projeny(target_project, project_pool, lineage, level):
1616
"""
1717
lineage[target_project] = {}
1818
child_projects = [proj for proj in project_pool
19-
if proj.Parent
20-
and proj.Parent.ref == target_project.ref
21-
]
19+
if proj.Parent
20+
and proj.Parent.ref == target_project.ref
21+
]
2222
for child in child_projects:
23-
projeny(child, project_pool, lineage[target_project], level + 1)
23+
projeny(child, project_pool, lineage[target_project], level+1)
2424

2525
def flatten(target_dict, sort_attr, list_o_things):
2626
"""
@@ -36,7 +36,6 @@ def flatten(target_dict, sort_attr, list_o_things):
3636
return list_o_things
3737

3838
def projectDescendants(target_project, project_pool):
39-
# descendents = {target_project : {}}
4039
descendents = {}
4140
projeny(target_project, project_pool, descendents, 1)
4241
return flatten(descendents, 'Name', [])

0 commit comments

Comments
 (0)