Merge pull request #2989 from djl/sort-wanted

Sorted wanted albums by release date.
This commit is contained in:
AdeHub
2017-07-27 20:07:32 +12:00
committed by GitHub

View File

@@ -537,7 +537,7 @@ class WebInterface(object):
myDB = db.DBConnection()
upcoming = myDB.select(
"SELECT * from albums WHERE ReleaseDate > date('now') order by ReleaseDate ASC")
wanted = myDB.select("SELECT * from albums WHERE Status='Wanted'")
wanted = myDB.select("SELECT * from albums WHERE Status='Wanted' order by ReleaseDate ASC")
return serve_template(templatename="upcoming.html", title="Upcoming", upcoming=upcoming,
wanted=wanted)