Update app.py
Browse files
app.py
CHANGED
@@ -197,9 +197,9 @@ def order_summary():
|
|
197 |
else:
|
198 |
print(f"Total items extracted: {len(order_items)}")
|
199 |
|
|
|
200 |
return render_template(
|
201 |
'reward_status.html',
|
202 |
-
order=order,
|
203 |
order_items=order_items
|
204 |
)
|
205 |
|
@@ -207,8 +207,6 @@ def order_summary():
|
|
207 |
print(f"Error querying Salesforce: {str(e)}")
|
208 |
return f"Error querying Salesforce: {str(e)}", 500
|
209 |
|
210 |
-
|
211 |
-
|
212 |
@app.route("/logout")
|
213 |
def logout():
|
214 |
# Retrieve table number before clearing session
|
|
|
197 |
else:
|
198 |
print(f"Total items extracted: {len(order_items)}")
|
199 |
|
200 |
+
# Pass the order_items to the template
|
201 |
return render_template(
|
202 |
'reward_status.html',
|
|
|
203 |
order_items=order_items
|
204 |
)
|
205 |
|
|
|
207 |
print(f"Error querying Salesforce: {str(e)}")
|
208 |
return f"Error querying Salesforce: {str(e)}", 500
|
209 |
|
|
|
|
|
210 |
@app.route("/logout")
|
211 |
def logout():
|
212 |
# Retrieve table number before clearing session
|