nagasurendra commited on
Commit
1fb4cf5
·
verified ·
1 Parent(s): 38b011c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -121,7 +121,6 @@ def login():
121
 
122
  @app.route('/order_summary')
123
  def order_summary():
124
-
125
  email = session.get('user_email')
126
 
127
  if not email:
@@ -198,7 +197,6 @@ def order_summary():
198
  else:
199
  print(f"Total items extracted: {len(order_items)}")
200
 
201
- # Pass the order_items to the template
202
  return render_template(
203
  'reward_status.html',
204
  order_items=order_items
@@ -208,6 +206,7 @@ def order_summary():
208
  print(f"Error querying Salesforce: {str(e)}")
209
  return f"Error querying Salesforce: {str(e)}", 500
210
 
 
211
  @app.route("/logout")
212
  def logout():
213
  # Retrieve table number before clearing session
 
121
 
122
  @app.route('/order_summary')
123
  def order_summary():
 
124
  email = session.get('user_email')
125
 
126
  if not email:
 
197
  else:
198
  print(f"Total items extracted: {len(order_items)}")
199
 
 
200
  return render_template(
201
  'reward_status.html',
202
  order_items=order_items
 
206
  print(f"Error querying Salesforce: {str(e)}")
207
  return f"Error querying Salesforce: {str(e)}", 500
208
 
209
+
210
  @app.route("/logout")
211
  def logout():
212
  # Retrieve table number before clearing session