Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ async def on_ready():
|
|
| 86 |
await periodic_api_test()
|
| 87 |
print(f"------------------------------------------------------------------------")
|
| 88 |
except Exception as e:
|
| 89 |
-
print(f"
|
| 90 |
|
| 91 |
|
| 92 |
def update_google_sheet():
|
|
@@ -104,14 +104,14 @@ def update_google_sheet():
|
|
| 104 |
"type": 'TEXT',
|
| 105 |
},
|
| 106 |
})
|
| 107 |
-
|
| 108 |
-
|
| 109 |
set_with_dataframe(worksheet2, worksheet2_df)
|
| 110 |
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 111 |
print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
|
| 112 |
print(f"------------------------------------------------------------------------")
|
| 113 |
except Exception as e:
|
| 114 |
-
print(f"
|
| 115 |
|
| 116 |
|
| 117 |
|
|
|
|
| 86 |
await periodic_api_test()
|
| 87 |
print(f"------------------------------------------------------------------------")
|
| 88 |
except Exception as e:
|
| 89 |
+
print(f"on_ready Error: {e}")
|
| 90 |
|
| 91 |
|
| 92 |
def update_google_sheet():
|
|
|
|
| 104 |
"type": 'TEXT',
|
| 105 |
},
|
| 106 |
})
|
| 107 |
+
worksheet2_df['discord_user_id'] = worksheet2_df['discord_user_id'].astype(str)
|
| 108 |
+
worksheet2_df['id_recover_test'] = worksheet2_df['id_recover_test'].astype(str)
|
| 109 |
set_with_dataframe(worksheet2, worksheet2_df)
|
| 110 |
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 111 |
print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
|
| 112 |
print(f"------------------------------------------------------------------------")
|
| 113 |
except Exception as e:
|
| 114 |
+
print(f"update_google_sheet Error: {e}")
|
| 115 |
|
| 116 |
|
| 117 |
|