Hello Folks! I am working on paset8, why table is not inserting into buy route
1 Answer
As the error is telling you in the first screenshot, trans
doesn't have a key called stock
.
-
Thanks Kareem for your time, i tried to insert a table called purchase and history under buy route but when i check finance.db i cannot find any so i manually go to the finance.db and insert the above said two tables, now when i try to register after running flask run, it is giving int object not subscriptable. i googled and found people suggesting to remove [0] from the line session["user_id"] = results["id"], but even after truncating 0 from the line it is howing the same error, any though on that.– mann__10Jan 2, 2020 at 9:16