mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-08 12:49:32 +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)
|
||||
manageArtists.exposed = True
|
||||
|
||||
def manageAlbums(self):
|
||||
def manageAlbums(self, Status=None):
|
||||
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)
|
||||
manageAlbums.exposed = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user