I think that there's enough room now to make it as a one-liner:
`nodes = [(ci.id, ci.name, ci.icon) for ci in affected_cis]`
;)