Kobo sync token is now also created if accessed from localhost(fixes #1990)

Create kobo sync token button is now "unclicked" after closing dialog
Additional localhost route is catched
If book format is deleted this also deletes the book synced to kobo status
This commit is contained in:
Ozzie Isaacs
2022-01-22 18:23:08 +01:00
parent bbef41290f
commit d759df0df6
5 changed files with 45 additions and 46 deletions

View File

@@ -341,6 +341,7 @@ def delete_book_from_table(book_id, book_format, jsonResponse):
else:
calibre_db.session.query(db.Data).filter(db.Data.book == book.id).\
filter(db.Data.format == book_format).delete()
kobo_sync_status.remove_synced_book(book.id, True)
calibre_db.session.commit()
except Exception as ex:
log.debug_or_exception(ex)