lunarflu HF staff commited on
Commit
907d206
1 Parent(s): 7a717f0
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -863,7 +863,7 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
863
  return (f"# ❌ The HF account {profile.username} is already verified! To change discord accounts or HF accounts, contact @lunarflu or adam@huggingface.co")
864
 
865
  # check if discord_user_id in dataframe:
866
- altered_member_id = "L" + str(member.id) + "L"
867
  if altered_member_id in global_df['discord_user_id'].values:
868
 
869
  hf_user_name = global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'].iloc[0]
 
863
  return (f"# ❌ The HF account {profile.username} is already verified! To change discord accounts or HF accounts, contact @lunarflu or adam@huggingface.co")
864
 
865
  # check if discord_user_id in dataframe:
866
+ altered_member_id = "L" + str(user_id) + "L"
867
  if altered_member_id in global_df['discord_user_id'].values:
868
 
869
  hf_user_name = global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'].iloc[0]