geethareddy commited on
Commit
81b5c8a
·
verified ·
1 Parent(s): 662270f

Update customdish.py

Browse files
Files changed (1) hide show
  1. customdish.py +2 -1
customdish.py CHANGED
@@ -91,7 +91,8 @@ def generate_custom_dish():
91
  }
92
  sf.Cart_Item__c.create(cart_item)
93
 
94
- return jsonify({"success": True, "message": "Custom dish added to cart successfully"})
 
95
 
96
  except Exception as e:
97
  return jsonify({"success": False, "error": str(e)}), 500
 
91
  }
92
  sf.Cart_Item__c.create(cart_item)
93
 
94
+ # Redirect to the menu page to refresh and show the new custom dish
95
+ return redirect(url_for('menu.menu', category='Customized Dish'))
96
 
97
  except Exception as e:
98
  return jsonify({"success": False, "error": str(e)}), 500