Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,9 +295,9 @@ async def send_embed_test(ctx, member_id):
|
|
| 295 |
if not row.empty:
|
| 296 |
target_exp = row['discord_exp'].values[0]
|
| 297 |
rank = (global_df['discord_exp'] > target_exp).sum() + 1
|
| 298 |
-
print(f"The rank for discord_id {
|
| 299 |
else:
|
| 300 |
-
print(f"Discord ID {
|
| 301 |
|
| 302 |
# send embed
|
| 303 |
msg = 'Congrats! You just leveled up in the Hugging Face Discord server from'
|
|
|
|
| 295 |
if not row.empty:
|
| 296 |
target_exp = row['discord_exp'].values[0]
|
| 297 |
rank = (global_df['discord_exp'] > target_exp).sum() + 1
|
| 298 |
+
print(f"The rank for discord_id {member_id} based on discord_exp is: {rank}")
|
| 299 |
else:
|
| 300 |
+
print(f"Discord ID {member_id} not found in the DataFrame.")
|
| 301 |
|
| 302 |
# send embed
|
| 303 |
msg = 'Congrats! You just leveled up in the Hugging Face Discord server from'
|