diff --git a/cps/editbooks.py b/cps/editbooks.py index 28a8d2a6..8ac7b2c8 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -179,7 +179,7 @@ def delete_book(book_id, book_format): # delete book from Shelfs, Downloads, Read list ub.session.query(ub.BookShelf).filter(ub.BookShelf.book_id == book_id).delete() ub.session.query(ub.ReadBook).filter(ub.ReadBook.book_id == book_id).delete() - ub.session.query(ub.ArchivedBook).filter(ub.ReadBook.book_id == book_id).delete() + ub.session.query(ub.ArchivedBook).filter(ub.ArchivedBook.book_id == book_id).delete() ub.delete_download(book_id) ub.session.commit()