

def __init__(self, cart_dict=None):
    cart_dict = (cart_dict or {
        
    })
    if (cart_dict == {
        
    }):
        self.total = 0
        self.subtotal = 0
        self.items = []
    else:
        self.total = cart_dict['total']
        self.subtotal = cart_dict['subtotal']
        self.items = cart_dict['items']
    self.extra_amount = float(app.config['EXTRA_AMOUNT'])

dataset/ETHPy150Open rochacbruno/python-pagseguro/examples/flask/flask_seguro/cart.py Cart.__init__/original