Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -467,7 +467,7 @@ async def on_message(message):
|
|
467 |
|
468 |
hf_user_name = global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'].iloc[0]
|
469 |
|
470 |
-
if hf_user_name == 'n/a':
|
471 |
# empty (no link created yet between discord_user_id and hf_user_name) so we can update
|
472 |
global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'] = user['name']
|
473 |
global_df.loc[global_df['discord_user_id'] == altered_member_id, 'verified_date'] = verified_date
|
|
|
467 |
|
468 |
hf_user_name = global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'].iloc[0]
|
469 |
|
470 |
+
if pd.isnull(hf_user_name) or hf_user_name == 'n/a':
|
471 |
# empty (no link created yet between discord_user_id and hf_user_name) so we can update
|
472 |
global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'] = user['name']
|
473 |
global_df.loc[global_df['discord_user_id'] == altered_member_id, 'verified_date'] = verified_date
|