Commit 365834a6 authored by 张永's avatar 张永

Merge branch 'master' of git.wanmeizhensuo.com:alpha/sun

parents 62d18d1c 66b9ef7d
......@@ -23,7 +23,7 @@ class PictorialListView(APIView):
def post(self, request):
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
updates = json.loads(request.POST.get('update', '{}'))
try:
self.rpc['venus/sun/pictorial/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......
......@@ -41,7 +41,7 @@ class PushUpdateOrCreateView(APIView):
url = request.POST.get('url', '')
if url == '推送帖子':
url = 'alpha://topic_detail?topic_id='
elif url == '推送小组':
elif url == '推送画报':
url = 'alpha://pictorial_detail?pictorial_id='
full_url = url + pictorial_topic_id
......
......@@ -35,7 +35,7 @@ class TagSearchView(APIView):
def get(self, request):
offset, count = get_offset_count(request)
name = request.GET.get('name')
platform = request.GET.get('platform')
platform = None # request.GET.get('platform')
collection = request.GET.get('collection')
try:
data = self.rpc['venus/sun/tag/search'](offset=offset, count=count, name=name, platform=platform, collection=collection).unwrap()
......
......@@ -67,7 +67,7 @@ class TagUpdateOrCreateView(APIView):
try:
data = self.rpc['venus/sun/tag/edit'](id=id, data=data).unwrap()
except Exception as e:
error_logger.error(u'创建/编辑标签%d信息失败%s' % (id, e))
error_logger.error(u'创建/编辑标签%s信息失败%s' % (id, e))
raise
return data
......
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