fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eec370e
)
only top level books in api/newest
author
Jan Szejko
<janek37@gmail.com>
Thu, 29 Mar 2018 12:18:17 +0000
(14:18 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 29 Mar 2018 12:18:17 +0000
(14:18 +0200)
src/api/handlers.py
patch
|
blob
|
history
diff --git
a/src/api/handlers.py
b/src/api/handlers.py
index
88fa1c3
..
3c6761b
100644
(file)
--- a/
src/api/handlers.py
+++ b/
src/api/handlers.py
@@
-210,6
+210,8
@@
class AnonymousBooksHandler(AnonymousBaseHandler, BookDetails):
except ValueError:
return rc.NOT_FOUND
except ValueError:
return rc.NOT_FOUND
+ top_level = top_level or newest
+
if 'after' in request.GET:
after = request.GET['after']
if 'before' in request.GET:
if 'after' in request.GET:
after = request.GET['after']
if 'before' in request.GET: