Sort upcoming releases by the soonest first

This commit is contained in:
rembo10
2012-07-18 19:25:39 +05:30
parent 22c807ddbb
commit f24d0491ba

View File

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