Sort ??
This commit is contained in:
parent
1928069b67
commit
39120993cc
4
app.py
4
app.py
@ -1,4 +1,4 @@
|
||||
from operator import itemgetter
|
||||
from operator import attrgetter, itemgetter
|
||||
|
||||
from flask import redirect, render_template, request, url_for
|
||||
|
||||
@ -100,6 +100,8 @@ def list_animes():
|
||||
@auth.login_required
|
||||
def admin():
|
||||
folders = AnimeFolder.query.all()
|
||||
for folder in folders:
|
||||
folder.titles.sort(key=attrgetter('name'))
|
||||
form = DeleteForm(request.form)
|
||||
|
||||
if form.validate_on_submit():
|
||||
|
Reference in New Issue
Block a user