@@ -65,6 +65,7 @@ def update_manage_table(forms, req_args, files, img_type):
'http://127.0.0.1:5000/api/manages/data?page={}§ion={}'.format(
req_args.get('page'), req_args.get('section_class')), json=update_data)
if response.status_code == 200:
+ sleep(1) # waiting for API upload image successfully.
flash('修改成功', 'success')
else:
flash('修改失敗', 'danger')