Relative Content

Tag Archive for pythonsqliteflask

SQLite3 flask execute returning only one object when im expecting 2

I have a SQLite database where the table userProducts currently has 2 rows in it, 2|1 and 2|2. My expected output for my SQL query is 1 and 2, however im only getting 1. When i run the exact query in my database it returns exactly what i expect, however in my flask function it doesnt. Ive recently had to re-do my database handling due to switching libraries so im very new to this way of getting data. Its not the cleanest code since im actively debugging it

SQLite3 flask execute returning only one object when im expecting 2

I have a SQLite database where the table userProducts currently has 2 rows in it, 2|1 and 2|2. My expected output for my SQL query is 1 and 2, however im only getting 1. When i run the exact query in my database it returns exactly what i expect, however in my flask function it doesnt. Ive recently had to re-do my database handling due to switching libraries so im very new to this way of getting data. Its not the cleanest code since im actively debugging it