1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed bug in web interface for non-independent artists

This commit is contained in:
krateng 2022-04-22 21:38:35 +02:00
parent 529d0c8a5d
commit 7c9f6e9e2d

View File

@ -373,7 +373,13 @@ def artist_info(dbconn=None,**keys):
replaceartist = sqldb.get_credited_artists(artist)[0]
c = [e for e in alltimecharts if e["artist"] == replaceartist][0]
position = c["rank"]
return {"artist":artist,"replace":replaceartist,"scrobbles":scrobbles,"position":position}
return {
"artist":artist,
"replace":replaceartist,
"scrobbles":scrobbles,
"position":position,
"id":artist_id
}