From 8ff2f9607bb13c005101ebf30ea384c5327ee662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 15 Dec 2019 20:46:13 +0100 Subject: [PATCH] Sort links too --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index d1102be..fd095b6 100644 --- a/app.py +++ b/app.py @@ -101,6 +101,8 @@ def list_animes(): def admin(): folders = AnimeFolder.query.all() for folder in folders: + for title in folder.titles: + title.links.sort(key=attrgetter('season')) folder.titles.sort(key=attrgetter('name')) form = DeleteForm(request.form)