예제 #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
파일: views.py 프로젝트: weqq2019/tmooc_cn
    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}