Just recently, on my implementation of CS50 Finance, I bought 4 shares of Netflix, and then another 2, but instead of showing 6 shares on the Portfolio, it's only showing 2. The "Total" value for the shares is also current price of NFLX * 2.
I'll show you guys my index
route and template code just in case. Route: https://pastebin.com/Gw64H1ky; template: https://pastebin.com/macgJ9AE.
What could the problem be? I think it's in index
itself, either in the route or in the template. Might be a problem in the no_of_shares_dict
dictionary, but I'm not sure how I can check to make sure.