From b93158529c5fceeb2b9d6a054e02dcc319a104b8 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 29 Mar 2018 14:18:17 +0200 Subject: [PATCH] only top level books in api/newest --- src/api/handlers.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.20.1