Spaces:
Sleeping
Sleeping
Update customdish.py
Browse files- 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 |
-
|
|
|
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
|