Hi all.
I am sorry but I asked this question on another forum yesterday (a cardinal sin) and somebody has helped me. Its the first time anybody has helped me on that forum. any way the answer to my problem is:
rows = Pins.query.filter_by(pin=changePin).all()
There is so much to learn!!
I love python
I am sorry but I asked this question on another forum yesterday (a cardinal sin) and somebody has helped me. Its the first time anybody has helped me on that forum. any way the answer to my problem is:
rows = Pins.query.filter_by(pin=changePin).all() deviceName = rows[0].nameIt works but I dont understand how the "rows[0].name" works for all rows (ie if I call pin 23 name for 23 is displayed) Is "rows[0].name" a dictionary produced by
rows = Pins.query.filter_by(pin=changePin).all()
There is so much to learn!!
I love python