mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-09 13:19:28 +01:00
Sort upcoming releases by the soonest first
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user