I am working with Python plugins.
I have my list called station_list ,to which i had appended all the values.It contains all the integer values.
Now,I wanted to check my query result with list content. My code is:
self.db._exec_sql(c, "select distinct (station) from station ")
for row in c.fetchall():
for m in range(len_station_list):
print row[0],station_list[m]
if row[0] == station_list[m]:
print 'true'
I am checking each selected row with list values. When i print and check, it gives correct answer.But comparision goes wrong.
It does not satisfy condition if row[0] == station_list[m]:.
What can be the problem?
print row[0],station_list[m]line, so we can see why theiffails?