mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Performance view on artist page now considers countas rules
This commit is contained in:
parent
15103da70b
commit
d51441d508
@ -35,7 +35,7 @@
|
||||
KEY_PULSE
|
||||
</td>
|
||||
<td>
|
||||
<h2><a href='/performance?artist=KEY_ENC_ARTISTNAME&step=year&trail=1'>Performance</a></h2>
|
||||
<h2><a href='/performance?artist=KEY_ENC_CREDITEDARTISTNAME&step=year&trail=1'>Performance</a></h2>
|
||||
KEY_PERFORMANCE
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -34,6 +34,8 @@ def instructions(keys):
|
||||
if credited is not None:
|
||||
includestr = "Competing under " + artistLink(credited) + " (" + pos + ")"
|
||||
pos = ""
|
||||
else:
|
||||
credited = artist
|
||||
included = data.get("associated")
|
||||
if included is not None and included != []:
|
||||
includestr = "associated: "
|
||||
@ -45,11 +47,12 @@ def instructions(keys):
|
||||
html_scrobbles, _, _ = module_scrobblelist(artist=artist,max_=10,earlystop=True)
|
||||
|
||||
html_pulse = module_pulse(**filterkeys,step="year",stepn=1,trail=1)
|
||||
html_performance = module_performance(**filterkeys,step="year",stepn=1,trail=1)
|
||||
html_performance = module_performance(artist=credited,step="year",stepn=1,trail=1)
|
||||
|
||||
replace = {
|
||||
"KEY_ARTISTNAME":keys["artist"],
|
||||
"KEY_ENC_ARTISTNAME":urllib.parse.quote(keys["artist"]),
|
||||
"KEY_ENC_CREDITEDARTISTNAME":urllib.parse.quote(credited),
|
||||
"KEY_IMAGEURL":imgurl,
|
||||
"KEY_DESCRIPTION":"",
|
||||
"KEY_MEDALS":html_medals,
|
||||
|
Loading…
Reference in New Issue
Block a user