I am Stuck on CS50 Finance, on the /buy function i guess. started from scratch again but no luck :(
So the whole thing basically works – i can Register a new user, i can login i can get the shares quotes etc.
But as soon as i try to buy a share, i get an error: ValueError: NOT NULL constraint failed: portfolio.shares.
CODE: