fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78bbe25
)
fix
author
Jan Szejko
<janek37@gmail.com>
Wed, 26 Sep 2018 08:56:28 +0000
(10:56 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Wed, 26 Sep 2018 08:56:28 +0000
(10:56 +0200)
src/api/handlers.py
patch
|
blob
|
history
diff --git
a/src/api/handlers.py
b/src/api/handlers.py
index
cee41f4
..
2e847c5
100644
(file)
--- a/
src/api/handlers.py
+++ b/
src/api/handlers.py
@@
-179,7
+179,7
@@
class BookDetails(object):
try:
author, title, book_id = after.split(SORT_KEY_SEP)
except ValueError:
- return
[]
+ return
Book.objects.none()
return books.filter(Q(sort_key_author__gt=author)
| (Q(sort_key_author=author) & Q(sort_key__gt=title))
| (Q(sort_key_author=author) & Q(sort_key=title) & Q(id__gt=int(book_id))))