|
|
|
@ -158,6 +158,7 @@ def HandleSyncRequest():
|
|
|
|
|
.filter(db.Books.last_modified >= sync_token.books_last_modified)
|
|
|
|
|
.filter(db.Books.id>sync_token.books_last_id)
|
|
|
|
|
.filter(db.Data.format.in_(KOBO_FORMATS))
|
|
|
|
|
.filter(calibre_db.common_filters())
|
|
|
|
|
.order_by(db.Books.last_modified)
|
|
|
|
|
.order_by(db.Books.id)
|
|
|
|
|
.limit(SYNC_ITEM_LIMIT)
|
|
|
|
@ -168,6 +169,7 @@ def HandleSyncRequest():
|
|
|
|
|
.join(db.Data).outerjoin(ub.ArchivedBook, db.Books.id == ub.ArchivedBook.book_id)
|
|
|
|
|
.filter(db.Books.last_modified > sync_token.books_last_modified)
|
|
|
|
|
.filter(db.Data.format.in_(KOBO_FORMATS))
|
|
|
|
|
.filter(calibre_db.common_filters())
|
|
|
|
|
.order_by(db.Books.last_modified)
|
|
|
|
|
.order_by(db.Books.id)
|
|
|
|
|
.limit(SYNC_ITEM_LIMIT)
|
|
|
|
|