Commit 18622e94 authored by 王浩's avatar 王浩

fix code

parent 384d596b
...@@ -23,7 +23,7 @@ class PictorialListView(APIView): ...@@ -23,7 +23,7 @@ class PictorialListView(APIView):
def post(self, request): def post(self, request):
ids = json.loads(request.POST.get('ids', '[]')) ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}')) updates = json.loads(request.POST.get('update', '{}'))
try: try:
self.rpc['venus/sun/pictorial/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/pictorial/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
......
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