WIP:[BugFix]:main.py:跳转错误

Bug428-LouJiCheng
stfujnkk 2022-06-14 21:53:20 +08:00
parent 241708af9c
commit 0117470ab5
1 changed files with 2 additions and 2 deletions

View File

@ -107,11 +107,11 @@ def mainpage():
essay = Essay()
@app.route('/goCroze', methods=['GET', 'POST'])
@app.route('/gocloze', methods=['GET', 'POST'])
def go_ClozeTest():
if request.method == 'GET':
essay._article_id += 1
essay.create_crozeTest(essay)
essay.create_clozeTest(essay)
return render_template('clozeTest.html', essay=essay, answers=None)
if request.method == 'POST':