Commit c2d20a55 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'dev'

fix code

See merge request alpha/sun!71
parents c692d01c 034b5515
......@@ -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