Hi, I’m stuck with pset7 finance for a while. I managed to implement quote and buy functions but got stuck with index. Right now my database has two tables, users an portfolio. Users table is structured as id(unique), username, hash, cash, and cashbalance, Portfolio table is structured with the symbol, shares, price, userid, date and time rows. The problem appears as follows: whenever the current user has bought one, two or more shares , index page always shows html table with multiple instances of only the first bought stock, other transactions don’t appear in the table. Here is my application py index function and buy function, can someone please help me with this. Much appreciated!
EDIT: Ok, I changed it according to your suggestions, but still having the same problem? EDIT2: Ok, i got it, but now I can't pull the symbol data with lookup function to get the current price of each stock?