From c6dadbe75e0e49f6ff4e55e2f5623bad6fdc9db3 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Thu, 13 May 2021 09:17:01 +0200 Subject: [PATCH] restrictions are now applied to kobo sync requests (Fix #1938) --- cps/kobo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/kobo.py b/cps/kobo.py index 8988ef3f..085bf1bc 100644 --- a/cps/kobo.py +++ b/cps/kobo.py @@ -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)