Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update customdish.py
Browse files- customdish.py +2 -1
    	
        customdish.py
    CHANGED
    
    | @@ -96,7 +96,8 @@ def generate_custom_dish(): | |
| 96 | 
             
                        cart_result = sf.Cart_Item__c.create(cart_item)
         | 
| 97 |  | 
| 98 | 
             
                    # Redirect to the cart page after successfully adding or updating the cart item
         | 
| 99 | 
            -
                    return redirect(url_for( | 
|  | |
| 100 |  | 
| 101 | 
             
                except Exception as e:
         | 
| 102 | 
             
                    return jsonify({"success": False, "error": str(e)}), 500
         | 
|  | |
| 96 | 
             
                        cart_result = sf.Cart_Item__c.create(cart_item)
         | 
| 97 |  | 
| 98 | 
             
                    # Redirect to the cart page after successfully adding or updating the cart item
         | 
| 99 | 
            +
                    return redirect(url_for('cart.cart'))
         | 
| 100 | 
            +
             | 
| 101 |  | 
| 102 | 
             
                except Exception as e:
         | 
| 103 | 
             
                    return jsonify({"success": False, "error": str(e)}), 500
         |