From 1cb66c0d1125a6c1275ce1570d40b4d660e0dd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 26 Nov 2020 06:20:37 +0100 Subject: [PATCH] artist name is now artist --- src/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources.py b/src/resources.py index 57b27a4..0e2a1ff 100644 --- a/src/resources.py +++ b/src/resources.py @@ -156,7 +156,7 @@ class SingleListApi(Resource): currdata = musicbrainzngs.get_artists_in_collection(listid, limit, offset)['collection'] artistlist = [] 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')) retdata = {"id": currdata['id'], "element_count": currdata['artist-count'], "itemlist": artistlist} elif list_type == 'work':