mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-11 22:29:36 +01:00
expose getArtistjson so we can automatically update albums when updating an artist
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user