mirror of
https://github.com/krateng/maloja.git
synced 2025-04-16 16:52:18 +03:00
Certification now returned for associated artists
This commit is contained in:
parent
f7c4b260b0
commit
58b44f6d1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user