Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
solid version; adding timestamps
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ from gspread_dataframe import get_as_dataframe, set_with_dataframe
|
|
26 |
from gspread_formatting.dataframe import format_with_dataframe
|
27 |
from huggingface_hub import HfApi, list_liked_repos, list_metrics, list_models
|
28 |
from tabulate import tabulate
|
|
|
29 |
|
30 |
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
|
31 |
intents = discord.Intents.all()
|
@@ -89,7 +90,9 @@ def update_google_sheet():
|
|
89 |
"type": 'TEXT',
|
90 |
},
|
91 |
})
|
92 |
-
|
|
|
|
|
93 |
except Exception as e:
|
94 |
print(f"on_message Error: {e}")
|
95 |
|
|
|
26 |
from gspread_formatting.dataframe import format_with_dataframe
|
27 |
from huggingface_hub import HfApi, list_liked_repos, list_metrics, list_models
|
28 |
from tabulate import tabulate
|
29 |
+
from datetime import datetime
|
30 |
|
31 |
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
|
32 |
intents = discord.Intents.all()
|
|
|
90 |
"type": 'TEXT',
|
91 |
},
|
92 |
})
|
93 |
+
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
94 |
+
print(f"Google sheet {name} successfully updated at {timestamp}! \n{global_df}")
|
95 |
+
print(f"------------------------------------------------------------------------")
|
96 |
except Exception as e:
|
97 |
print(f"on_message Error: {e}")
|
98 |
|