From: Jan Szejko Date: Thu, 29 Mar 2018 12:18:17 +0000 (+0200) Subject: only top level books in api/newest X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/b93158529c5fceeb2b9d6a054e02dcc319a104b8 only top level books in api/newest --- diff --git a/src/api/handlers.py b/src/api/handlers.py index 88fa1c3db..3c6761b40 100644 --- a/src/api/handlers.py +++ b/src/api/handlers.py @@ -210,6 +210,8 @@ class AnonymousBooksHandler(AnonymousBaseHandler, BookDetails): 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: