From ad1619479875df53c54916d2b34a0f229d8904b8 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sun, 12 Nov 2017 18:08:13 +0100 Subject: [PATCH] Error on deleting non existing book fixed (#382) --- cps/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 1f4a5136..04540135 100755 --- a/cps/web.py +++ b/cps/web.py @@ -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")