Commit 1b8e0fb0 authored by zhanglu's avatar zhanglu

fix

parent ad7d06d1
...@@ -72,7 +72,7 @@ class TopicImageListView(APIView): ...@@ -72,7 +72,7 @@ class TopicImageListView(APIView):
result = [] result = []
for topic_id in topic_ids: for topic_id in topic_ids:
imgs_info = data.get(topic_id, []) imgs_info = data.get(str(topic_id), [])
if not imgs_info: if not imgs_info:
continue continue
...@@ -82,7 +82,7 @@ class TopicImageListView(APIView): ...@@ -82,7 +82,7 @@ class TopicImageListView(APIView):
}) })
result = { result = {
"data": data.get("data", []), "data": result,
"total": total_count, "total": total_count,
} }
......
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