Subbu1304 commited on
Commit
0bb757e
·
verified ·
1 Parent(s): e238705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -194,11 +194,11 @@ def generate_custom_dish():
194
  # Insert the custom dish as a Cart_Item__c record in Salesforce
195
  cart_result = sf.Cart_Item__c.create(cart_item)
196
 
197
- # Redirect to the cart page after successfully adding or updating the cart item
198
- return redirect(url_for("cart"))
199
 
200
- except Exception as e:
201
- return jsonify({"success": False, "error": str(e)}), 500
202
 
203
 
204
 
 
194
  # Insert the custom dish as a Cart_Item__c record in Salesforce
195
  cart_result = sf.Cart_Item__c.create(cart_item)
196
 
197
+ # Redirect to the cart page after successfully adding or updating the cart item
198
+ return redirect(url_for("cart"))
199
 
200
+ except Exception as e:
201
+ return jsonify({"success": False, "error": str(e)}), 500
202
 
203
 
204