fix mixing enumerate function
This commit is contained in:
parent
06f358c7a5
commit
3a18e9d543
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ def setup(bot: bot.Bot):
|
|||
|
||||
case "album" | "track":
|
||||
top_list = user.get_top_albums(period=timeframe, limit=count)
|
||||
for index, i in top_list:
|
||||
for index, i in enumerate(top_list):
|
||||
msg_content += f"\n{index+1}. [{i.item.get_title(properly_capitalized=True)}]({i.item.get_url()}) by [{i.item.get_artist().get_name(properly_capitalized=True)}]({i.item.get_artist().get_url()}) | {i.weight} plays"
|
||||
|
||||
msg_head = f"Top {len(top_list)} {entity}s {period} for [{username}]({user.get_url()}):\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue