Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -340,6 +340,7 @@ async def remove_huggingfolks():
|
|
| 340 |
community_global_df['discord_exp'] = pd.to_numeric(community_global_df['discord_exp'])
|
| 341 |
top_30_exp = community_global_df.nlargest(30, 'discord_exp')
|
| 342 |
top_30_exp.drop(top_30_exp.columns[0], axis=1, inplace=True)
|
|
|
|
| 343 |
top_30_rows = top_30_exp.values.tolist()
|
| 344 |
|
| 345 |
print(top_30_rows)
|
|
@@ -347,7 +348,7 @@ async def remove_huggingfolks():
|
|
| 347 |
message = await channel.fetch_message(1197148293164187678)
|
| 348 |
|
| 349 |
# put into message / leaderboard
|
| 350 |
-
new_table = tabulate(top_30_rows, headers=["Name", "Experience", "Level"], tablefmt="plain")
|
| 351 |
await message.edit(content=f"Updated Leaderboard:\n```\n{new_table}\n```")
|
| 352 |
|
| 353 |
except Exception as e:
|
|
|
|
| 340 |
community_global_df['discord_exp'] = pd.to_numeric(community_global_df['discord_exp'])
|
| 341 |
top_30_exp = community_global_df.nlargest(30, 'discord_exp')
|
| 342 |
top_30_exp.drop(top_30_exp.columns[0], axis=1, inplace=True)
|
| 343 |
+
top_30_exp['D'] = ['🥇','🥈','🥉']
|
| 344 |
top_30_rows = top_30_exp.values.tolist()
|
| 345 |
|
| 346 |
print(top_30_rows)
|
|
|
|
| 348 |
message = await channel.fetch_message(1197148293164187678)
|
| 349 |
|
| 350 |
# put into message / leaderboard
|
| 351 |
+
new_table = tabulate(top_30_rows, headers=["Name", "Experience", "Level", "Rank"], tablefmt="plain")
|
| 352 |
await message.edit(content=f"Updated Leaderboard:\n```\n{new_table}\n```")
|
| 353 |
|
| 354 |
except Exception as e:
|