0

Table not inserting in buy route

Hello Folks! I am working on paset8, why table is not inserting into buy route

0

As the error is telling you in the first screenshot, trans doesn't have a key called stock.

1
  • 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. –  Mannawar Hussain Jan 2 '20 at 9:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .