Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -869,7 +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 |
-
verified_date = datetime.
|
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"
|
|
|
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.now().strftime("%m/%d/%Y, %H:%M:%S")
|
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"
|