New route for list
This commit is contained in:
parent
1bd52adf74
commit
7fbc196921
5
app.py
5
app.py
@ -76,9 +76,10 @@ def latest(page=1):
|
|||||||
|
|
||||||
|
|
||||||
@app.route('/list')
|
@app.route('/list')
|
||||||
def list_animes():
|
@app.rouet('/list/<url_filters>')
|
||||||
|
def list_animes(url_filters='nyaa,yggtorrent'):
|
||||||
filters = None
|
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:
|
if not i:
|
||||||
filters = AnimeLink.link.contains(to_filter)
|
filters = AnimeLink.link.contains(to_filter)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user