now can show Lost books from menu

This commit is contained in:
2023-07-07 22:45:44 +10:00
parent 133967062f
commit aba532aaae
4 changed files with 13 additions and 4 deletions

View File

@@ -1031,6 +1031,12 @@ def FindMissingBooks():
books.append( { 'id': t.id, 'title': t.title, 'num_books': t.num_books, 'missing': str(missing)[1:-1] } )
return books
@app.route("/lost", methods=["GET"])
@login_required
def lost():
books = Book.query.join(Owned).filter(Owned.name=='Lost').all()
return render_template("books.html", books=books, page_title="Lost Books", show_cols='', hide_cols='Publisher' )
@app.route("/missing_books", methods=["GET"])
@login_required
def missing_books():