Skip to main content
3 votes
Accepted

Issue with Check50 PSET7 buy.html :( buy handles valid purchase

To pass the "buy handles valid purhase" stage, Check50 needs something along the lines of the following to appear following buying stock: You bought FB at $159.79 per stock which is worth $159.79 ...
AvocadoFire's user avatar
2 votes
Accepted

PSET9 Finance: Check50 says Buy doesn't handle fractional/invalid shares, but when I try these things my page does reject them. Why check50 no like?

So my first question is, where does it come from? It's either bootstrap or the browser. check50 does not use the front end to make the API calls. Therefore any limits put on the html, while GREAT for ...
DinoCoderSaurus's user avatar
2 votes
Accepted

How to pre-populate sell() and buy() forms from index - Pset7

The "something like" syntax in this call for the href attribute was wrong and has been corrected. It is more something like href="{{ url_for('buy', symbol=stock.symbol ) }}". stock....
DinoCoderSaurus's user avatar
1 vote

PSET 9: C$50 Finance. Why not <input type="number"> instead of text?

As you probably have already learned, problems must conform to the spec, full stop. I totally agree that the input should be validated in the HTML; it is better UI/UX. You could always run check50 to ...
DinoCoderSaurus's user avatar
1 vote

PSET9 Finance: Check50 says Buy doesn't handle fractional/invalid shares, but when I try these things my page does reject them. Why check50 no like?

So as DinoCoderSaurus kindly pointed out, the HTML was good. But due to the way Check50 works I needed some code in the flask route (application.py) as well. The "type=number" in the HTML ...
cormacl's user avatar
  • 48

Only top scored, non community-wiki answers of a minimum length are eligible