nagasurendra commited on
Commit
2e45435
·
verified ·
1 Parent(s): f5646a6

Update customdish.py

Browse files
Files changed (1) hide show
  1. customdish.py +2 -1
customdish.py CHANGED
@@ -16,7 +16,8 @@ def generate_custom_dish():
16
 
17
  if not dish_name or not description:
18
  return jsonify({"success": False, "error": "Both fields are required"}), 400
19
-
 
20
 
21
  # Generate a random price for the custom dish
22
  price = random.randint(10, 30) # Example logic for price setting
 
16
 
17
  if not dish_name or not description:
18
  return jsonify({"success": False, "error": "Both fields are required"}), 400
19
+ dish_name = dish_name.replace("'", "+")
20
+
21
 
22
  # Generate a random price for the custom dish
23
  price = random.randint(10, 30) # Example logic for price setting