Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ async def on_ready():
|
|
| 84 |
|
| 85 |
# updates both leaderboards
|
| 86 |
await remove_huggingfolks() # to initialize
|
| 87 |
-
print(
|
| 88 |
remove_huggingfolks.start()
|
| 89 |
#await periodic_api_test()
|
| 90 |
print(f"------------------------------------------------------------------------")
|
|
@@ -242,7 +242,7 @@ async def add_exp(member_id):
|
|
| 242 |
|
| 243 |
# finding leaderboard rank + excluding huggingfolks
|
| 244 |
try:
|
| 245 |
-
row = community_global_df_with_id[community_global_df_with_id['discord_user_id'] == member_id]
|
| 246 |
print(f"member id found")# does this need to be string?
|
| 247 |
target_exp = row['discord_exp'].values[0]
|
| 248 |
rank = (community_global_df_with_id['discord_exp'] > target_exp).sum() + 1
|
|
|
|
| 84 |
|
| 85 |
# updates both leaderboards
|
| 86 |
await remove_huggingfolks() # to initialize
|
| 87 |
+
print(community_global_df_with_id)
|
| 88 |
remove_huggingfolks.start()
|
| 89 |
#await periodic_api_test()
|
| 90 |
print(f"------------------------------------------------------------------------")
|
|
|
|
| 242 |
|
| 243 |
# finding leaderboard rank + excluding huggingfolks
|
| 244 |
try:
|
| 245 |
+
row = community_global_df_with_id[community_global_df_with_id['discord_user_id'] == str(member_id)]
|
| 246 |
print(f"member id found")# does this need to be string?
|
| 247 |
target_exp = row['discord_exp'].values[0]
|
| 248 |
rank = (community_global_df_with_id['discord_exp'] > target_exp).sum() + 1
|