Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,7 @@ from flask import Flask, render_template, request, jsonify, redirect, url_for, s
|
|
| 2 |
import random
|
| 3 |
from salesforce import get_salesforce_connection
|
| 4 |
import os
|
| 5 |
-
|
| 6 |
-
app.config["SESSION_TYPE"] = "filesystem"
|
| 7 |
-
Session(app)
|
| 8 |
|
| 9 |
# Initialize Flask app and Salesforce connection
|
| 10 |
app = Flask(__name__)
|
|
@@ -12,6 +10,8 @@ sf = get_salesforce_connection()
|
|
| 12 |
|
| 13 |
# Set the secret key to handle sessions securely
|
| 14 |
app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace with a secure key
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
@app.route("/")
|
|
|
|
| 2 |
import random
|
| 3 |
from salesforce import get_salesforce_connection
|
| 4 |
import os
|
| 5 |
+
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Initialize Flask app and Salesforce connection
|
| 8 |
app = Flask(__name__)
|
|
|
|
| 10 |
|
| 11 |
# Set the secret key to handle sessions securely
|
| 12 |
app.secret_key = os.getenv("SECRET_KEY", "sSSjyhInIsUohKpG8sHzty2q") # Replace with a secure key
|
| 13 |
+
app.config["SESSION_TYPE"] = "filesystem"
|
| 14 |
+
Session(app)
|
| 15 |
|
| 16 |
|
| 17 |
@app.route("/")
|