Update app.py
Browse files
app.py
CHANGED
|
@@ -24,10 +24,10 @@ GENDER_MAPPING = {
|
|
| 24 |
"Other": "Others"
|
| 25 |
}
|
| 26 |
|
| 27 |
-
# Salesforce credentials from environment variables
|
| 28 |
-
SALESFORCE_USERNAME = os.getenv("
|
| 29 |
-
SALESFORCE_PASSWORD = os.getenv("
|
| 30 |
-
SALESFORCE_SECURITY_TOKEN = os.getenv("
|
| 31 |
|
| 32 |
# Log the credentials being used (for debugging)
|
| 33 |
print(f"Using Salesforce credentials - Username: {SALESFORCE_USERNAME}")
|
|
@@ -84,7 +84,7 @@ def interact_with_salesforce(attributes):
|
|
| 84 |
username=SALESFORCE_USERNAME,
|
| 85 |
password=SALESFORCE_PASSWORD,
|
| 86 |
security_token=SALESFORCE_SECURITY_TOKEN,
|
| 87 |
-
domain="login",
|
| 88 |
version="60.0"
|
| 89 |
)
|
| 90 |
print(f"Successfully connected to Salesforce as {SALESFORCE_USERNAME}")
|
|
|
|
| 24 |
"Other": "Others"
|
| 25 |
}
|
| 26 |
|
| 27 |
+
# Salesforce credentials from environment variables
|
| 28 |
+
SALESFORCE_USERNAME = os.getenv("SALESFORCE_USERNAME")
|
| 29 |
+
SALESFORCE_PASSWORD = os.getenv("SALESFORCE_PASSWORD")
|
| 30 |
+
SALESFORCE_SECURITY_TOKEN = os.getenv("SALESFORCE_SECURITY_TOKEN")
|
| 31 |
|
| 32 |
# Log the credentials being used (for debugging)
|
| 33 |
print(f"Using Salesforce credentials - Username: {SALESFORCE_USERNAME}")
|
|
|
|
| 84 |
username=SALESFORCE_USERNAME,
|
| 85 |
password=SALESFORCE_PASSWORD,
|
| 86 |
security_token=SALESFORCE_SECURITY_TOKEN,
|
| 87 |
+
domain="login",
|
| 88 |
version="60.0"
|
| 89 |
)
|
| 90 |
print(f"Successfully connected to Salesforce as {SALESFORCE_USERNAME}")
|