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 @@