From 742ec2b38d59637a12697880fda6bc98ab6b3d4c Mon Sep 17 00:00:00 2001 From: Michael Shavit Date: Wed, 22 Apr 2020 00:19:33 -0400 Subject: [PATCH] Fix issue with the delete_book changes introduced in 41a3623 --- cps/editbooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()