Commit ff6cf19b authored by haowang's avatar haowang

fix code

parent d3a9fd76
......@@ -19,7 +19,7 @@ class ProductListView(APIView):
for obj in category_infos:
product_id = obj.get('product_id')
if ret.get(str(product_id)):
ret[str(product_id)] = ret.get(str(product_id)).append(obj)
ret.get(str(product_id)).append(obj)
else:
ret[str(product_id)] = [obj]
return ret
......@@ -32,7 +32,7 @@ class ProductListView(APIView):
for obj in effect_infos:
product_id = obj.get('product_id')
if ret.get(str(product_id)):
ret[str(product_id)] = ret.get(str(product_id)).append(obj)
ret.get(str(product_id)).append(obj)
else:
ret[str(product_id)] = [obj]
return ret
......@@ -45,7 +45,7 @@ class ProductListView(APIView):
for obj in classify_infos:
product_id = obj.get('product_id')
if ret.get(str(product_id)):
ret[str(product_id)] = ret.get(str(product_id)).append(obj)
ret.get(str(product_id)).append(obj)
else:
ret[str(product_id)] = [obj]
return ret
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment