Spaces:
Sleeping
Sleeping
Upload feedback.py
Browse files- app/feedback.py +4 -1
app/feedback.py
CHANGED
|
@@ -42,7 +42,10 @@ def inicializar_arquivo_feedback():
|
|
| 42 |
|
| 43 |
|
| 44 |
def google_sheets_habilitado():
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
def _append_feedback_csv(row):
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
def google_sheets_habilitado():
|
| 45 |
+
try:
|
| 46 |
+
return load_credentials() is not None and bool(os.getenv("GOOGLE_SPREADSHEET_ID", "").strip())
|
| 47 |
+
except Exception:
|
| 48 |
+
return False
|
| 49 |
|
| 50 |
|
| 51 |
def _append_feedback_csv(row):
|