Commit b35257f8 authored by haowang's avatar haowang

fix code

parent 6522610b
......@@ -26,6 +26,7 @@ class BrandListView(APIView):
category_infos = self.rpc['neptune/commodity/category/infos'](brand_ids=brand_ids).unwrap()
category_dict = {}
if category_infos:
for obj in category_infos:
obj_id = obj.get('brand_id')
if category_dict.get(str(obj_id)):
......
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