expose getArtistjson so we can automatically update albums when updating an artist

This commit is contained in:
rembo10
2015-03-09 17:03:25 -07:00
parent b0b0bcbdb7
commit 26005d6584

View File

@@ -877,6 +877,7 @@ class WebInterface(object):
cherrypy.response.headers['Content-type'] = 'application/json'
return json_albums
@cherrypy.expose
def getArtistjson(self, ArtistID, **kwargs):
myDB = db.DBConnection()
artist = myDB.action('SELECT * FROM artists WHERE ArtistID=?', [ArtistID]).fetchone()