Closed Griffin-Sullivan closed 4 months ago
remaining_cvs.resources[1].versions|map(attribute='version')|list was returning ['5.0', '4.0', '3.0'] which is != to ['3.0', '4.0', '5.0']. Let's use difference() and compare them like we would with a set.
remaining_cvs.resources[1].versions|map(attribute='version')|list
['5.0', '4.0', '3.0']
['3.0', '4.0', '5.0']
difference()
remaining_cvs.resources[1].versions|map(attribute='version')|list
was returning['5.0', '4.0', '3.0']
which is != to['3.0', '4.0', '5.0']
. Let's usedifference()
and compare them like we would with a set.