nagasurendra commited on
Commit
6546c7f
·
verified ·
1 Parent(s): 145b38f

Update cart.py

Browse files
Files changed (1) hide show
  1. cart.py +2 -1
cart.py CHANGED
@@ -206,8 +206,9 @@ def remove_cart_item(item_name):
206
  print(f"Error: {str(e)}")
207
  return jsonify({'success': False, 'message': f"An error occurred: {str(e)}"}), 500
208
 
209
- @cart_blueprint.route("/cart/update_quantity", methods=["POST"])
210
  def update_quantity():
 
211
  data = request.json # Extract JSON data from the request
212
  email = data.get('email')
213
  item_name = data.get('item_name')
 
206
  print(f"Error: {str(e)}")
207
  return jsonify({'success': False, 'message': f"An error occurred: {str(e)}"}), 500
208
 
209
+ @cart_blueprint.route("/update_quantity", methods=["POST"])
210
  def update_quantity():
211
+ print("Handling update_quantity request...")
212
  data = request.json # Extract JSON data from the request
213
  email = data.get('email')
214
  item_name = data.get('item_name')