Update run.py
Browse files
run.py
CHANGED
|
@@ -24,8 +24,7 @@ json_data={
|
|
| 24 |
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/nestoleservice%40nestolechatbot.iam.gserviceaccount.com",
|
| 25 |
"universe_domain": "googleapis.com"
|
| 26 |
}
|
| 27 |
-
creds = service_account.Credentials.from_service_account_info(json_data, scope)
|
| 28 |
-
|
| 29 |
|
| 30 |
#creds = ServiceAccountCredentials.from_json_keyfile_name('/home/user/app/chromaold/nestolechatbot-5fe2aa26cb52.json', scope)
|
| 31 |
client = gspread.authorize(creds)
|
|
|
|
| 24 |
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/nestoleservice%40nestolechatbot.iam.gserviceaccount.com",
|
| 25 |
"universe_domain": "googleapis.com"
|
| 26 |
}
|
| 27 |
+
creds = service_account.Credentials.from_service_account_info(json_data, scopes=scope)
|
|
|
|
| 28 |
|
| 29 |
#creds = ServiceAccountCredentials.from_json_keyfile_name('/home/user/app/chromaold/nestolechatbot-5fe2aa26cb52.json', scope)
|
| 30 |
client = gspread.authorize(creds)
|