mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 13:43:47 +00:00
Merge remote-tracking branch 'more_kobo_fixes' into Develop
This commit is contained in:
commit
98dc991339
10
cps/kobo.py
10
cps/kobo.py
@ -159,18 +159,14 @@ def HandleSyncRequest():
|
|||||||
entitlements.append({"ChangedEntitlement": entitlement})
|
entitlements.append({"ChangedEntitlement": entitlement})
|
||||||
|
|
||||||
new_books_last_modified = max(
|
new_books_last_modified = max(
|
||||||
book.last_modified, sync_token.books_last_modified
|
book.last_modified, new_books_last_modified
|
||||||
)
|
)
|
||||||
new_books_last_created = max(book.timestamp, sync_token.books_last_created)
|
new_books_last_created = max(book.timestamp, new_books_last_created)
|
||||||
|
|
||||||
sync_token.books_last_created = new_books_last_created
|
sync_token.books_last_created = new_books_last_created
|
||||||
sync_token.books_last_modified = new_books_last_modified
|
sync_token.books_last_modified = new_books_last_modified
|
||||||
|
|
||||||
if config.config_kobo_proxy:
|
return generate_sync_response(request, sync_token, entitlements)
|
||||||
return generate_sync_response(request, sync_token, entitlements)
|
|
||||||
|
|
||||||
return make_response(jsonify(entitlements))
|
|
||||||
# Missing feature: Detect server-side book deletions.
|
|
||||||
|
|
||||||
|
|
||||||
def generate_sync_response(request, sync_token, entitlements):
|
def generate_sync_response(request, sync_token, entitlements):
|
||||||
|
Loading…
Reference in New Issue
Block a user