fix
Browse files- GoogleDrive_API.py +1 -4
GoogleDrive_API.py
CHANGED
|
@@ -24,7 +24,7 @@ class GoogleDrive_API:
|
|
| 24 |
"type": "service_account",
|
| 25 |
"project_id": os.environ["project_id"],
|
| 26 |
"private_key_id": os.environ["private_key_id"],
|
| 27 |
-
"private_key": "
|
| 28 |
"client_email": os.environ["client_email"],
|
| 29 |
"client_id": os.environ["client_id"],
|
| 30 |
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
@@ -33,9 +33,6 @@ class GoogleDrive_API:
|
|
| 33 |
"client_x509_cert_url": os.environ["client_x509_cert_url"],
|
| 34 |
"universe_domain": "googleapis.com",
|
| 35 |
}
|
| 36 |
-
for key, value in service_account_info.items():
|
| 37 |
-
if isinstance(value, str):
|
| 38 |
-
service_account_info[key] = value.replace("\\\\", "\\")
|
| 39 |
|
| 40 |
print(service_account_info["private_key"])
|
| 41 |
|
|
|
|
| 24 |
"type": "service_account",
|
| 25 |
"project_id": os.environ["project_id"],
|
| 26 |
"private_key_id": os.environ["private_key_id"],
|
| 27 |
+
"private_key": os.environ["private_key"],
|
| 28 |
"client_email": os.environ["client_email"],
|
| 29 |
"client_id": os.environ["client_id"],
|
| 30 |
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
|
|
| 33 |
"client_x509_cert_url": os.environ["client_x509_cert_url"],
|
| 34 |
"universe_domain": "googleapis.com",
|
| 35 |
}
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
print(service_account_info["private_key"])
|
| 38 |
|