|
@@ -18,7 +18,7 @@ def create_content(data, image_data):
|
|
|
if new_response.status_code == 200:
|
|
|
requests.post(
|
|
|
'{}upload/static/img?type={}&filename={}'.format(
|
|
|
- PORTAL_SERVER, data.get('type'), get_trans_title_url_name(image_data.filename)), files={'image': image_data})
|
|
|
+ PORTAL_SERVER, data.get('type'), image_data.filename), files={'image': image_data})
|
|
|
sleep(1) # sleep for waiting for new_content API generating content successfully.
|
|
|
return redirect(url_for('editor.editor', url='/{}/{}'.format(
|
|
|
data.get('type'), get_trans_title_url_name(data.get('name')))))
|