示例#1
0
    def get_carts_order_data(self, uid):

        carts_obj = CartsView()
        # carts_1 - {'sku_id':[count, select]}
        all_data = carts_obj.get_carts_all_data(uid)
        return {k: v for k, v in all_data.items() if v[1] == 1}
示例#2
0
 def get_carts_order_data(self, uid):
     carts_obj = CartsView()
     all_data = carts_obj.get_carts_all_data(uid)
     return {k: v for k, v in all_data.items() if v[1] == 1}
示例#3
0
    def get_carts_order_data(self, uid):

        carts_obj = CartsView()
        all_data = carts_obj.get_carts_all_data(uid)
        #{skuid:[count, selected]}
        return {k:v for k, v in all_data.items() if v[1] == 1}