My CS50 finance app passes all check50 tests except just one in the SELL component. I just can't find the error and need thoughts/ideas / tried a lot ( read: a-lot). My code was created in 2017 and now adjusted to the 2018 specification. Here is the error report produced by check50
:( sell page has all required elements expected to find select field with name "symbol", but none found
- The program works fine so far as I see.
The sell.html file has the form name as "symbol" as required in the 2018 spec.
<div class="form-group"> <input autocomplete="off" autofocus class="form-control" name="symbol" placeholder="Stock" type="text"/> </div>
The python code appears (to me) to reference the "symbol" name correctly
if request.method == 'POST': try: symbol = request.form.get("symbol") shares = request.form.get("shares") except: return apology("Data Error; Try again") if not symbol: return apology("Oops .. please enter a valid share Acronym")
and when the SELL routine is finished it redirects to the index page
I'd sure appreciate any thoughts on where to look for the error that check50 reports? Does anyone know what check50 is testing or really looking for?