From 6b6e0c4e6d6ec3c47a4ef3fe8d7ef94b254a4782 Mon Sep 17 00:00:00 2001 From: luxick Date: Sat, 16 Feb 2019 11:59:54 +0100 Subject: [PATCH] Order seasons and episodes by code. --- db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index 9536eef..e307690 100644 --- a/db.py +++ b/db.py @@ -162,7 +162,7 @@ def load_season(id=None): if id: sql += " where season.id = ?" args = (id,) - sql += " order by season.start" + sql += " order by season.code" return sql, args @@ -172,5 +172,5 @@ def load_episodes(season_id: int = None): if season_id: sql += " where episode.season_id = ?" args = (season_id,) - sql += " order by episode.date" + sql += " order by episode.code" return sql, args