Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,7 @@ contacts_df = load_contacts()
|
|
| 26 |
def get_sheet():
|
| 27 |
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
|
| 28 |
creds = ServiceAccountCredentials.from_json_keyfile_name(CREDS_FILE, scope)
|
|
|
|
| 29 |
client = gspread.authorize(creds)
|
| 30 |
sheet = client.open_by_url("https://docs.google.com/spreadsheets/d/1bYRrOokZ_D85fj_0bbByc6dfaxW50Hj2PqDRG_r25yU")
|
| 31 |
return sheet.worksheet(SHEET_NAME)
|
|
|
|
| 26 |
def get_sheet():
|
| 27 |
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
|
| 28 |
creds = ServiceAccountCredentials.from_json_keyfile_name(CREDS_FILE, scope)
|
| 29 |
+
st.write("🔐 Using service account:", creds.service_account_email)
|
| 30 |
client = gspread.authorize(creds)
|
| 31 |
sheet = client.open_by_url("https://docs.google.com/spreadsheets/d/1bYRrOokZ_D85fj_0bbByc6dfaxW50Hj2PqDRG_r25yU")
|
| 32 |
return sheet.worksheet(SHEET_NAME)
|