I have question with displaying values from stock structure that returns by lookup - name and symbol are the same.
Here is how quoted.html is called
#ask for stock
stock_symbol = lookup(request.form.get("symbol"))
#get quoted for the user
return render_template("quoted.html", stock = stock_symbol)
Here is quoted.html
{%block main %}
<p>Price for {{ stock.name }} ({{ stock.symbol }}) is {{ stock.price }} </p>
{% endblock %}
And result for example for Verizon will be:
Is this correct that name == symbol?Shouldn't there be full name 'Verizon' instead of 'VZ'?Is it problem somwhere in code or it depends on data in CSV file from helpers(sorry, but i'm not managed how to check in inside this csv file)
Regards,