I am trying to retrieve some data from a table and output it as a list. The problem is that the resulting list is not in the correct form.
This is my table:
My code:
cur.execute("SELECT tegebruikentags FROM tagstegebruiken WHERE wel_niet_lezen = True")
taglist = cur.fetchall()
print (taglist)
The output:
[('Bakkerij.Device1.DB100INT0',), ('Bakkerij.Device1.DB100INT4',), ('Bakkerij.Device1.DB100INT8',)]
The desired output:
['Bakkerij.Device1.DB100INT0', 'Bakkerij.Device1.DB100INT4', 'Bakkerij.Device1.DB100INT8']
How should I edit the code in order to get the list as I want?
Thanks in advance!