Jun-21-2020, 06:00 AM
(This post was last modified: Jun-21-2020, 06:00 AM by card51shor.)
Im a genius!! I got it going! Here's my code:
I'm going to paste that tomorrow and mark this as complete. Hopefully u guys can help me finish it tomorrow.
Thanks!!!
@app.route("/book", methods=["GET", "POST"]) @app.route("/book/<isbn>") def book(isbn = None): search = db.execute("SELECT * FROM books WHERE isbn = :isbn", {'isbn':isbn}).fetchone() isbn = search[0] title = search[1] author = search[2] year = search[3] reviews = "" return render_template("book.html", title=title, author=author, year=year, reviews=reviews, isbn=isbn)Now - for the final step of the project, I have to create an option for the user to leave a review for the project.
I'm going to paste that tomorrow and mark this as complete. Hopefully u guys can help me finish it tomorrow.
Thanks!!!