Spaces:
Runtime error
Runtime error
Synced repo using 'sync_with_huggingface' Github Action
Browse files
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[
|
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}")
|