def lookup(): if request.method == 'POST': stock_symbol_lookup = request.form['stock_symbol_lookup'] stock_info = transactions.get_info(stock_symbol_lookup) return render_template('index.html', balance=session['balance'], inventory=session['inventory'], selected=stock_info)
def stocks(stock): return jsonify(transactions.get_info(stock))
def viewstock(stock): stock_info = transactions.get_info(stock) return render_template('index.html', balance=session['balance'], inventory=session['inventory'], selected=stock_info)