Questions tagged [index.html]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
589 views

pset7 index.html, adding buy/sell button which linked to stock respectively

As the last requirement of the pset, I want to try empower users to buy more shares or sell shares of stocks they already own via index itself, without having to type stocks' symbols manually. I have ...
1
vote
2answers
352 views

CS50 Pset7: rows inside the for loop are not showing up in index.html

I have been trying to implementing my code for Index and index.html. My code for Index seems to work very well, but my index.html isn't. My implementation of index() and index.html are pasted below. ...
0
votes
2answers
300 views

pset7, cash on index.html sometimes giving many decimals (eg.4882.139999999999)

Like what the title saying, I didn't format the value to float... Here is my index() code: def index(): # get stock and share information rows = db.execute("SELECT stock, SUM(shares) AS shares FROM '...
0
votes
1answer
103 views

CS50 Pset7: rows inside the for loop aren't showing up in index.html

I have been trying to implementing my code for Index and index.html. My code for Index seems to work very well, but my index.html isn't. The jinja template is pasted below. For some reasons, the table ...