artist name is now artist
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b241245e9c
commit
1cb66c0d11
@ -156,7 +156,7 @@ class SingleListApi(Resource):
|
|||||||
currdata = musicbrainzngs.get_artists_in_collection(listid, limit, offset)['collection']
|
currdata = musicbrainzngs.get_artists_in_collection(listid, limit, offset)['collection']
|
||||||
artistlist = []
|
artistlist = []
|
||||||
for artist in currdata['artist-list']:
|
for artist in currdata['artist-list']:
|
||||||
artistlist.append({"id": artist['id'], "name": artist['name']})
|
artistlist.append({"id": artist['id'], "artist": artist['name']})
|
||||||
flaskred.set(artist['id'], 'artist'.encode('UTF-8'))
|
flaskred.set(artist['id'], 'artist'.encode('UTF-8'))
|
||||||
retdata = {"id": currdata['id'], "element_count": currdata['artist-count'], "itemlist": artistlist}
|
retdata = {"id": currdata['id'], "element_count": currdata['artist-count'], "itemlist": artistlist}
|
||||||
elif list_type == 'work':
|
elif list_type == 'work':
|
||||||
|
Loading…
Reference in New Issue
Block a user