Spaces:
Sleeping
Sleeping
Update app.py
#2
by
nagasurendra
- opened
app.py
CHANGED
|
@@ -10,10 +10,9 @@ load_dotenv()
|
|
| 10 |
app = Flask(__name__)
|
| 11 |
|
| 12 |
# Load Salesforce credentials from .env file using os.getenv()
|
| 13 |
-
SF_USERNAME = os.getenv("
|
| 14 |
-
SF_PASSWORD = os.getenv("
|
| 15 |
-
SF_SECURITY_TOKEN = os.getenv("
|
| 16 |
-
|
| 17 |
# Authenticate with Salesforce
|
| 18 |
sf = Salesforce(username=SF_USERNAME, password=SF_PASSWORD, security_token=SF_SECURITY_TOKEN)
|
| 19 |
|
|
|
|
| 10 |
app = Flask(__name__)
|
| 11 |
|
| 12 |
# Load Salesforce credentials from .env file using os.getenv()
|
| 13 |
+
SF_USERNAME = os.getenv("SF_USERNAME")
|
| 14 |
+
SF_PASSWORD = os.getenv("SF_PASSWORD")
|
| 15 |
+
SF_SECURITY_TOKEN = os.getenv("SF_SECURITY_TOKEN")
|
|
|
|
| 16 |
# Authenticate with Salesforce
|
| 17 |
sf = Salesforce(username=SF_USERNAME, password=SF_PASSWORD, security_token=SF_SECURITY_TOKEN)
|
| 18 |
|