completed TODO-11 (unrated books)
This commit is contained in:
5
main.py
5
main.py
@@ -649,6 +649,11 @@ def books_on_shelf():
|
||||
books = db.engine.execute("select * from book where id not in ( select sub_book_id from book_sub_book_link ) and owned = (select id from owned where name = 'Currently Owned')")
|
||||
return render_template("books.html", books=books )
|
||||
|
||||
@app.route("/unrated_books", methods=["GET"])
|
||||
def unrated_books():
|
||||
books = db.engine.execute("select * from book where rating = (select id from rating where name = 'Undefined') and owned = (select id from owned where name = 'Currently Owned')")
|
||||
return render_template("books.html", books=books )
|
||||
|
||||
@app.route("/", methods=["GET"])
|
||||
def main_page():
|
||||
return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage())
|
||||
|
||||
Reference in New Issue
Block a user