DSatishchandra commited on
Commit
09862d2
·
verified ·
1 Parent(s): 3d370d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- from flask_session import Session
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("/")