lunarflu HF staff commited on
Commit
b9d4588
·
1 Parent(s): 52ccbe4

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ async def level(ctx):
153
  except Exception as e:
154
  print(f"Error for user {author_id}: {e}")
155
 
156
- sorted_user_data = sorted(user_data, key=lambda x: x[2], reverse=True)
157
 
158
  for user, xp, level in sorted_user_data:
159
  print(f"user: {user} | xp: {xp} | level: {level}")
 
153
  except Exception as e:
154
  print(f"Error for user {author_id}: {e}")
155
 
156
+ sorted_user_data = sorted(user_data, key=lambda x: x[1], reverse=True)
157
 
158
  for user, xp, level in sorted_user_data:
159
  print(f"user: {user} | xp: {xp} | level: {level}")