lunarflu HF staff commited on
Commit
a246d4f
·
verified ·
1 Parent(s): cf41948

verified date

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -869,6 +869,7 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
869
 
870
  if pd.isnull(hf_user_name) or hf_user_name == 'n/a':
871
  # empty (no link created yet between discord_user_id and hf_user_name) so we can update
 
872
  global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'] = profile.username
873
  global_df.loc[global_df['discord_user_id'] == altered_member_id, 'verified_date'] = verified_date
874
  org_link = "https://huggingface.co/organizations/discord-community/share/wPKRAHYbAlaEaCxUxcqVyaaaeZcYagDvqc"
 
869
 
870
  if pd.isnull(hf_user_name) or hf_user_name == 'n/a':
871
  # empty (no link created yet between discord_user_id and hf_user_name) so we can update
872
+ verified_date = datetime.datetime.now()
873
  global_df.loc[global_df['discord_user_id'] == altered_member_id, 'hf_user_name'] = profile.username
874
  global_df.loc[global_df['discord_user_id'] == altered_member_id, 'verified_date'] = verified_date
875
  org_link = "https://huggingface.co/organizations/discord-community/share/wPKRAHYbAlaEaCxUxcqVyaaaeZcYagDvqc"