Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Change var name 'type' as it shadows in-built
Browse files Browse the repository at this point in the history
  • Loading branch information
KOOKIIEStudios committed Nov 9, 2020
1 parent 5432869 commit 5e61f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/Command.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ async def handle_ranking(client, txt_channel, author, msg, message) \
e.set_thumbnail(url=Config.ICON_URL)
for x in range(5):
name = table[x]["name"]
type = table[x][category]
rank_type = table[x][category]
job = Utils.get_job_by_id(table[x]["job"])

e.add_field(name=f"{Utils.get_ordinal_number(x + 1)}. {name} ({job})", value=f"{category}: {type}",
e.add_field(name=f"{Utils.get_ordinal_number(x + 1)}. {name} ({job})", value=f"{category}: {rank_type}",
inline=False)
await txt_channel.send(embed=e)
return True
Expand Down

0 comments on commit 5e61f80

Please sign in to comment.