lunarflu HF staff commited on
Commit
70ac534
·
verified ·
1 Parent(s): fe673b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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