From 7fbc196921e735c9e79be871da174d55e5a91690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Mon, 16 Dec 2019 20:48:17 +0100 Subject: [PATCH] New route for list --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index fd095b6..6833b16 100644 --- a/app.py +++ b/app.py @@ -76,9 +76,10 @@ def latest(page=1): @app.route('/list') -def list_animes(): +@app.rouet('/list/') +def list_animes(url_filters='nyaa,yggtorrent'): filters = None - for i, to_filter in enumerate(request.args.get('s', 'nyaa,yggtorrent').split(',')): + for i, to_filter in enumerate(url_filters.split(',')): if not i: filters = AnimeLink.link.contains(to_filter) else: