修改一个bug

This commit is contained in:
weiye.wang 2024-05-12 20:13:57 +08:00
parent de437a92c2
commit 43e344785c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def show_image():
@app.route('/submit_remarks', methods=['POST'])
def submit_remarks():
category = request.form['category']
remarks = request.form['remarks'].repalce("\n"," ").strip()
remarks = request.form['remarks'].replace("\n"," ").strip()
date = GetDate()
# mydb = connect(hostname = db_host, port = db_port, username=db_user, pwd=db_pwd, db = "tikutest")
mydb = connect(hostname = db_host, port = db_port, username=db_user, pwd=db_pwd, db = "tiku")