3

Suggestion: validate your register.html with Nu Html Checker. (Right-click, view source, copy, paste into the checker). It should complain about the typo in this line <input type="email" class="form-control" id="inputEmail" name: "email" placeholder="example@gmail.com" data-error="Invalid Email Address" required>


2

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 You now have $5,865.72 left to spend I've chosen to display a bought.html page with the above information on following a purchase. So rather than re-direct ...


2

Two Three possible points of failure. symbol = request.form.get("symbol"). Remember, python get() returns None if the requested key is not found. Is there an element in the html with attribute name="symbol"? If not symbol will be None. quote = lookup(symbol). Lookup will return None if symbol is not found by the API. If symbol is not a ...


1

I think old_pw has a value of None. You write if not (old_pw or new_pw or confirm_password): but mean if not old_pw or not new_pw or not confirm_password: or equivalently if not (old_pw and new_pw and confirm_password): Edit: In code not provided in the question, there was a typo in name="old_passwrod", which would cause request.form.get("old_password"...


1

The issue here is that, when the index.html page is rendered, the lookup function is returning None for the stock (in this particular case, it's because you are converting your symbols to lowercase before storing them, so check50 is expecting "AAAA" but you've stored "aaaa").


1

Either: Is lookup always returning something? You could check this before applying a subscript. Reasoning is that Yahoo shut down its API a few weeks ago. Have you updated your helpers.py file? The one on the CS50 repo has a fallback for another service (sadly does not provide company names, will return the symbol instead). Or: Is your database query ...


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