I have the following code snipit that I am trying to determine which tanks end with the letter ‘T’ and put them into the list transferList. I get an error on the line “if tank.endswith(‘T’)”. I give up. What am I doing wrong this time?
dsList = fpmi.db.toPyDataSet(event.source.parent.getComponent('MyCalendar').dsNextWeek)
tankList = dsList[0][myDay]
tankList = string.split(tankList,",")
for tank in tankList:
if tank.endswith('T')
transferList = transferList + tank