Added options in order to synchronize only selected shelf on Kobo device

This commit is contained in:
alfred82santa
2021-02-06 20:29:43 +01:00
parent 6137fdeb33
commit a3f17deb17
4 changed files with 68 additions and 21 deletions

View File

@ -239,6 +239,12 @@ def create_edit_shelf(shelf, title, page, shelf_id=False):
shelf.is_public = 1
else:
shelf.is_public = 0
if "kobo_sync" in to_save:
shelf.kobo_sync = True
else:
shelf.kobo_sync = False
if check_shelf_is_unique(shelf, to_save, shelf_id):
shelf.name = to_save["title"]
# shelf.last_modified = datetime.utcnow()