Jun-21-2020, 05:25 AM
(This post was last modified: Jun-21-2020, 05:32 AM by card51shor.)
how do I get the isbn, though? What am I doing to trigger the event? For instance, for search, it's when I click the search button, then the code in python tells it to execute search.
How do I get it to execute the SQL?
no right now the link is just to the "book" page. I didn't use the isbn since I figured we didn't have to do that with the URL. We have to do it with a JSON request but that's something I'll worry about later.
I have one week left to finish this I'm getting really nervous. All I have to do is figure out how to get the information I already have into this function.
Surely there's got to be an easy way, right?
The way you are explaining has me very confused.
basically how do i get access to the http event?
How do I get it to execute the SQL?
no right now the link is just to the "book" page. I didn't use the isbn since I figured we didn't have to do that with the URL. We have to do it with a JSON request but that's something I'll worry about later.
I have one week left to finish this I'm getting really nervous. All I have to do is figure out how to get the information I already have into this function.
Surely there's got to be an easy way, right?
The way you are explaining has me very confused.
@app.route("/book", methods=["GET", "POST"]) def book(): title = request.form.get("book") author = "" year = "" reviews = "" return render_template("book.html", title=title, author=author, year=year, reviews=reviews)
basically how do i get access to the http event?