use row number instead of enumerate()
@@ -1245,7 +1245,7 @@ class Econ(commands.Cog):
body = ""
# create base leaderboard
- for place, entry in enumerate(lb_list):
+ for entry in lb_list:
user = self.bot.get_user(entry[0])
if user is None:
@@ -1253,7 +1253,7 @@ class Econ(commands.Cog):
else:
user = discord.utils.escape_markdown(user.display_name)
- body += rank_fstr.format(place + 1, entry[1], user)
+ body += rank_fstr.format(entry[2] + 1, entry[1], user)
# add user if user is missing from the leaderboard
if u_entry[2] > 9:
