From aaf6df48cfe8ba15205a10766fc51a1ea10a62e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 15 Dec 2019 18:53:19 +0100 Subject: [PATCH] Fix latest pagination --- app.py | 5 ++--- templates/latest.html | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 84c7a2b..506b933 100644 --- a/app.py +++ b/app.py @@ -55,9 +55,8 @@ def search(): @app.route('/latest') -def latest(): - page = request.args.get('page', 1) - +@app.route('/latest/') +def latest(page=1): torrents = [ Nyaa('', return_type=ConnectorReturn.HISTORY, page=page).run(), Pantsu('', return_type=ConnectorReturn.HISTORY, page=page).run(), diff --git a/templates/latest.html b/templates/latest.html index 24b110b..1620c3d 100644 --- a/templates/latest.html +++ b/templates/latest.html @@ -70,11 +70,11 @@