1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-22 18:04:50 +00:00

Fix archiving bookm for kobo sync

Fix back function without search parameter
Updated Testresults
This commit is contained in:
Ozzie Isaacs
2024-08-04 07:12:22 +02:00
parent bcf4a479ac
commit 9b520b1941
4 changed files with 530 additions and 854 deletions

View File

@@ -183,9 +183,9 @@ def toggle_read(book_id):
@web.route("/ajax/togglearchived/<int:book_id>", methods=['POST'])
@user_login_required
def toggle_archived(book_id):
is_archived = change_archived_books(book_id, message="Book {} archive bit toggled".format(book_id))
if is_archived:
remove_synced_book(book_id)
change_archived_books(book_id, message="Book {} archive bit toggled".format(book_id))
# Remove book from syncd books list to force resync (?)
remove_synced_book(book_id)
return ""