nagasurendra commited on
Commit
22a5f92
·
verified ·
1 Parent(s): 174e074

Update customdish.py

Browse files
Files changed (1) hide show
  1. customdish.py +2 -1
customdish.py CHANGED
@@ -96,7 +96,8 @@ def generate_custom_dish():
96
  cart_result = sf.Cart_Item__c.create(cart_item)
97
 
98
  # Redirect to the cart page after successfully adding or updating the cart item
99
- return redirect(url_for("cart"))
 
100
 
101
  except Exception as e:
102
  return jsonify({"success": False, "error": str(e)}), 500
 
96
  cart_result = sf.Cart_Item__c.create(cart_item)
97
 
98
  # Redirect to the cart page after successfully adding or updating the cart item
99
+ return redirect(url_for('cart.cart'))
100
+
101
 
102
  except Exception as e:
103
  return jsonify({"success": False, "error": str(e)}), 500