From 7667da6e126c7f6f050ef9e745398ed51eac06f9 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 15 Apr 2017 18:18:08 +0200 Subject: [PATCH] Books now really deleted from hard disk (#119) --- cps/web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cps/web.py b/cps/web.py index 1bdbb9bb..b1495582 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1290,6 +1290,7 @@ def delete_book(book_id): if current_user.role_delete_books(): book = db.session.query(db.Books).filter(db.Books.id == book_id).first() if book: + helper.delete_book(book,config.config_calibre_dir) # check if only this book links to: # author, language, series, tags, custom columns modify_database_object([u''], book.authors, db.Authors, db.session, 'author')