修改response

This commit is contained in:
zhaojinghao 2022-12-09 11:45:56 +08:00
parent 8ab8c3e38d
commit 15aa5a467a
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -149,7 +149,7 @@ def run_ts_predict():
resp.headers["Content-Disposition"] = "attachment; filename*=utf-8''{}".format(file_name)
resp.headers["Content-type"] = "application/x-xlsx"
else:
resp = make_response(resp_info)
resp = make_response(json.dumps(resp_info))
resp.status_code = 200
return resp