mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04: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,
|
"artist":artist,
|
||||||
"scrobbles":scrobbles,
|
"scrobbles":scrobbles,
|
||||||
"id":artist_id,
|
"id":artist_id,
|
||||||
"isalbumartist":isalbumartist
|
"isalbumartist":isalbumartist,
|
||||||
|
"certification":cert,
|
||||||
}
|
}
|
||||||
|
|
||||||
# check if credited to someone else
|
# 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)
|
sqldb.count_scrobbles_by_artist(since=year.first_stamp(),to=year.last_stamp(),resolve_ids=False,dbconn=dbconn)
|
||||||
)]
|
)]
|
||||||
},
|
},
|
||||||
"certification":cert,
|
|
||||||
"topweeks":len([
|
"topweeks":len([
|
||||||
week for week in ranges(step="week") if (week != twk) and any(
|
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
|
(e.get('artist_id') == artist_id) and (e.get('rank') == 1) for e in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user