I'm trying to get the stocks by quote and it worked just fine a week ago but it suddenly stopped working. Can someone please explain me what has changed and how I should alter my code to get it working again? You can read my code below. I haven't altered the helpers.py function. Thanks in advance!
@app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): if request.method == "POST": if not request.form.get("quote"): return apology("must provide symbol") stock = lookup(request.form.get("quote")) if stock == None: return apology("Stock could not be found") return render_template("quoted.html", stock=stock) else: return render_template("quote.html")