Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -102,12 +102,6 @@ def update_google_sheet():
|
|
102 |
global_df['discord_user_id'] = global_df['discord_user_id'].astype(str)
|
103 |
# could just do this / format
|
104 |
set_with_dataframe(worksheet, global_df)
|
105 |
-
# very important, otherwise gspread will force format IDs in scientific notation by default (making them unusable)
|
106 |
-
worksheet.format(f"A1:A{len(global_df.index)+1}", {
|
107 |
-
"numberFormat": {
|
108 |
-
"type": 'TEXT',
|
109 |
-
},
|
110 |
-
})
|
111 |
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
112 |
print(f"------------------------------------------------------------------------")
|
113 |
print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
|
|
|
102 |
global_df['discord_user_id'] = global_df['discord_user_id'].astype(str)
|
103 |
# could just do this / format
|
104 |
set_with_dataframe(worksheet, global_df)
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
106 |
print(f"------------------------------------------------------------------------")
|
107 |
print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
|