优化数据导入的信息反馈与提示

This commit is contained in:
ngfchl
2022-09-13 23:16:08 +08:00
parent 644975182b
commit bcc3cbe48e
2 changed files with 42 additions and 44 deletions

View File

@@ -250,7 +250,7 @@ def do_update(request):
# client.api.inspect_container(cid)
# StartedAt = client.api.inspect_container(cid).get('State').get('StartedAt')
return JsonResponse(data=CommonResponse.error(
msg='更新成功,重启指令发送成功,容器重启中 ...' if flag else '更新成功未映射docker路径请手动重启容器 ...'
msg='更新成功,重启指令发送成功,容器重启中 ...' if not flag else '更新成功未映射docker路径请手动重启容器 ...'
).to_dict(), safe=False)
except Exception as e:
# raise