Commit 034b5515 authored by 王浩's avatar 王浩

fix code

parent ac65641d
......@@ -49,8 +49,6 @@ class TopicUpdateOrCreateView(APIView):
topic_images = list(map(lambda x: x[:-2], json.loads(request.POST.get('topic_images', []))))
tag_ids = list(map(lambda x: x.split(':')[0], json.loads(request.POST.get('tags', '[]'))))
collection_tag_ids = list(map(lambda x: x.split(':')[0], json.loads(request.POST.get('collection_tags', '[]'))))
own_tag_ids = list(map(lambda x: x.split(':')[0], json.loads(request.POST.get('own_tags', '[]'))))
ai_tag_ids = list(map(lambda x: x.split(':')[0], json.loads(request.POST.get('ai_tags', '[]'))))
data = {
'topic_images': topic_images,
......
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