mirror of
https://github.com/janeczku/calibre-web
synced 2025-02-22 22:10:12 +00:00
Add change_archived_books() description
This commit is contained in:
parent
2afce66486
commit
de3f883992
@ -51,6 +51,8 @@ def remove_synced_book(book_id, all=False, session=None):
|
||||
ub.session_commit(_session=session)
|
||||
|
||||
|
||||
# If state == none, it will toggle the archive state of the passed book_id.
|
||||
# state = true archives it, state = false unarchives it
|
||||
def change_archived_books(book_id, state=None, message=None):
|
||||
archived_book = ub.session.query(ub.ArchivedBook).filter(and_(ub.ArchivedBook.user_id == int(current_user.id),
|
||||
ub.ArchivedBook.book_id == book_id)).first()
|
||||
|
Loading…
x
Reference in New Issue
Block a user