Commit 7667da6e authored by OzzieIsaacs's avatar OzzieIsaacs

Books now really deleted from hard disk (#119)

parent 2b8c29c5
...@@ -1290,6 +1290,7 @@ def delete_book(book_id): ...@@ -1290,6 +1290,7 @@ def delete_book(book_id):
if current_user.role_delete_books(): if current_user.role_delete_books():
book = db.session.query(db.Books).filter(db.Books.id == book_id).first() book = db.session.query(db.Books).filter(db.Books.id == book_id).first()
if book: if book:
helper.delete_book(book,config.config_calibre_dir)
# check if only this book links to: # check if only this book links to:
# author, language, series, tags, custom columns # author, language, series, tags, custom columns
modify_database_object([u''], book.authors, db.Authors, db.session, 'author') modify_database_object([u''], book.authors, db.Authors, db.session, 'author')
......
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