Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
98dc9913
Commit
98dc9913
authored
Mar 12, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'more_kobo_fixes' into Develop
parents
404be948
ad564e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
kobo.py
cps/kobo.py
+3
-7
No files found.
cps/kobo.py
View file @
98dc9913
...
...
@@ -159,18 +159,14 @@ def HandleSyncRequest():
entitlements
.
append
({
"ChangedEntitlement"
:
entitlement
})
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_modified
=
new_books_last_modified
if
config
.
config_kobo_proxy
:
return
generate_sync_response
(
request
,
sync_token
,
entitlements
)
return
make_response
(
jsonify
(
entitlements
))
# Missing feature: Detect server-side book deletions.
return
generate_sync_response
(
request
,
sync_token
,
entitlements
)
def
generate_sync_response
(
request
,
sync_token
,
entitlements
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment