lunarflu HF staff commited on
Commit
68c646d
1 Parent(s): e971ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -267,7 +267,8 @@ async def restore_exp(ctx):
267
  for member_id in role_members:
268
  member = await bot.fetch_user(member_id)
269
  #xp = calculate_xp(13)
270
- xp = calculate_xp(role)
 
271
  level = calculate_level(xp+1)
272
  print(f"{role} {level} {xp} {member}")
273
 
 
267
  for member_id in role_members:
268
  member = await bot.fetch_user(member_id)
269
  #xp = calculate_xp(13)
270
+ position = level_roles.index(role) + 1
271
+ xp = calculate_xp(position)
272
  level = calculate_level(xp+1)
273
  print(f"{role} {level} {xp} {member}")
274