fix BUG-19 - unrated books, used wrong table joins
This commit is contained in:
2
main.py
2
main.py
@@ -774,7 +774,7 @@ def books_on_shelf():
|
||||
@app.route("/unrated_books", methods=["GET"])
|
||||
@login_required
|
||||
def unrated_books():
|
||||
books = Book.query.join(Condition,Owned).filter(Rating.name=='Undefined',Owned.name=='Currently Owned').all()
|
||||
books = Book.query.join(Rating,Owned).filter(Rating.name=='Undefined',Owned.name=='Currently Owned').all()
|
||||
return render_template("books.html", books=books, page_title="Books with no rating", show_cols='Rating', hide_cols='' )
|
||||
|
||||
def FindMissingBooks():
|
||||
|
||||
Reference in New Issue
Block a user