Certification now returned for associated artists

This commit is contained in:
krateng 2023-10-26 23:44:37 +02:00
parent f7c4b260b0
commit 58b44f6d1e

View File

@ -623,7 +623,8 @@ def artist_info(dbconn=None,**keys):
"artist":artist,
"scrobbles":scrobbles,
"id":artist_id,
"isalbumartist":isalbumartist
"isalbumartist":isalbumartist,
"certification":cert,
}
# check if credited to someone else
@ -649,7 +650,6 @@ def artist_info(dbconn=None,**keys):
sqldb.count_scrobbles_by_artist(since=year.first_stamp(),to=year.last_stamp(),resolve_ids=False,dbconn=dbconn)
)]
},
"certification":cert,
"topweeks":len([
week for week in ranges(step="week") if (week != twk) and any(
(e.get('artist_id') == artist_id) and (e.get('rank') == 1) for e in