Skip to content

Commit

Permalink
Update commands.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SylteA authored Oct 25, 2023
1 parent 328c845 commit 29f237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/extensions/levelling/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async def rank(self, interaction: core.InteractionType, member: discord.Member =

level = utils.get_level_for_xp(record.total_xp)
prev_xp = utils.get_xp_for_level(level)
next_xp = utils.get_xp_for_level(level + 1)
next_xp = utils.get_xp_for_level(level + 1) - prev_xp
curr_xp = record.total_xp - prev_xp

# Run the image generation in a thread to avoid blocking
Expand Down

0 comments on commit 29f237d

Please sign in to comment.