Commit c692d01c authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'dev'

fix code

See merge request alpha/sun!70
parents 05a19b1c ac65641d
......@@ -49,7 +49,8 @@ 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', '[]'))))
ai_tag_ids = list(map(lambda x: x.split(':')[0], json.loads(request.POST.get('ai_tag_ids', '[]'))))
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,
......@@ -62,6 +63,7 @@ class TopicUpdateOrCreateView(APIView):
'star_id': request.POST.get('star', '').split(':')[0],
'tag_ids': tag_ids,
'collection_tag_ids': collection_tag_ids,
'own_tag_ids': own_tag_ids,
'ai_tag_ids': ai_tag_ids,
'is_online': int(request.POST.get('is_online')),
'drop_score': int(request.POST.get('drop_score')),
......
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