(parent)
| 88 | |
| 89 | # Traverse the tree we just composed to add all children for all needed roots |
| 90 | def get_children(parent): |
| 91 | children = set() |
| 92 | for child in mkt_tree.get(parent, ()): |
| 93 | children.add(child) |
| 94 | children.update(get_children(child)) |
| 95 | return children |
| 96 | |
| 97 | |
| 98 | query_items = 'select distinct it.iconID from invtypes as it inner join invgroups as ig on it.groupID = ig.groupID where ig.categoryID != 2118' |