lokesh341 commited on
Commit
a0e0bbb
·
verified ·
1 Parent(s): 46e5ed2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -19,7 +19,8 @@ app.secret_key = os.urandom(24) # For session handling
19
  # Salesforce connection details
20
  try:
21
  print("Attempting to connect to Salesforce...")
22
- sf = Salesforce(username='[email protected]', password='Sati@1020', security_token='sSSjyhInIsUohKpG8sHzty2q')
 
23
  print("Connected to Salesforce successfully!")
24
  except Exception as e:
25
  print(f"Failed to connect to Salesforce: {str(e)}")
@@ -83,6 +84,10 @@ def is_silent_audio(audio_path):
83
  def index():
84
  return render_template("index.html")
85
 
 
 
 
 
86
  @app.route("/menu", methods=["GET"])
87
  def menu_page():
88
  menu_items = get_menu_items(sf) # Fetch menu items from Salesforce
 
19
  # Salesforce connection details
20
  try:
21
  print("Attempting to connect to Salesforce...")
22
+ sf = Salesforce(username='[email protected]', password='Sati@1020', security_token='sSSjyhInIsUohKpG8sHzty2q')
23
+
24
  print("Connected to Salesforce successfully!")
25
  except Exception as e:
26
  print(f"Failed to connect to Salesforce: {str(e)}")
 
84
  def index():
85
  return render_template("index.html")
86
 
87
+ @app.route("/dashboard", methods=["GET"])
88
+ def dashboard():
89
+ return render_template("dashboard.html") # Render the dashboard template
90
+
91
  @app.route("/menu", methods=["GET"])
92
  def menu_page():
93
  menu_items = get_menu_items(sf) # Fetch menu items from Salesforce