mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
Added Status filter to webserve
This commit is contained in:
@@ -229,9 +229,12 @@ class WebInterface(object):
|
|||||||
return serve_template(templatename="manageartists.html", title="Manage Artists", artists=artists)
|
return serve_template(templatename="manageartists.html", title="Manage Artists", artists=artists)
|
||||||
manageArtists.exposed = True
|
manageArtists.exposed = True
|
||||||
|
|
||||||
def manageAlbums(self):
|
def manageAlbums(self, Status=None):
|
||||||
myDB = db.DBConnection()
|
myDB = db.DBConnection()
|
||||||
albums = myDB.select('SELECT * from albums')
|
if Status:
|
||||||
|
albums = myDB.select('SELECT * from albums WHERE Status=?', [Status])
|
||||||
|
else:
|
||||||
|
albums = myDB.select('SELECT * from albums')
|
||||||
return serve_template(templatename="managealbums.html", title="Manage Albums", albums=albums)
|
return serve_template(templatename="managealbums.html", title="Manage Albums", albums=albums)
|
||||||
manageAlbums.exposed = True
|
manageAlbums.exposed = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user