Commit ad161947 authored by OzzieIsaacs's avatar OzzieIsaacs

Error on deleting non existing book fixed (#382)

parent 09f86ee8
......@@ -1470,8 +1470,8 @@ def delete_book(book_id):
db.session.query(db.Books).filter(db.Books.id == book_id).delete()
db.session.commit()
else:
# book not found
app.logger.info('Book with id "'+book_id+'" could not be deleted')
# book not foundß
app.logger.info('Book with id "'+str(book_id)+'" could not be deleted')
return redirect(url_for('index'))
@app.route("/gdrive/authenticate")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment