nagasurendra commited on
Commit
2dca26a
·
verified ·
1 Parent(s): 7780e22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -387,7 +387,7 @@ def checkout():
387
  return jsonify({"success": False, "message": "Cart is empty"})
388
 
389
  # Calculate the total price of the order
390
- total_price = sum(item['Price__c'] * item['Quantity__c'] for item in cart_items) # Updated to multiply by quantity
391
 
392
  # Format order details including instructions
393
  order_details = []
 
387
  return jsonify({"success": False, "message": "Cart is empty"})
388
 
389
  # Calculate the total price of the order
390
+ total_price = sum(item['Price__c'] for item in cart_items)
391
 
392
  # Format order details including instructions
393
  order_details = []