mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-16 08:35:32 +01:00
Sorted wanted albums by release date.
Without this SQLite will order the results by whichever column happens to be the fastest for it. This will usually result in the rows being sorted by the primary key (or rowid). Sorting by release date also matches the sort order of the "upcoming" albums list.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user