forked from mrlan/EnglishPal
WIP:[BugFix]:main.py:跳转错误
parent
241708af9c
commit
0117470ab5
|
@ -107,11 +107,11 @@ def mainpage():
|
||||||
essay = Essay()
|
essay = Essay()
|
||||||
|
|
||||||
|
|
||||||
@app.route('/goCroze', methods=['GET', 'POST'])
|
@app.route('/gocloze', methods=['GET', 'POST'])
|
||||||
def go_ClozeTest():
|
def go_ClozeTest():
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
essay._article_id += 1
|
essay._article_id += 1
|
||||||
essay.create_crozeTest(essay)
|
essay.create_clozeTest(essay)
|
||||||
|
|
||||||
return render_template('clozeTest.html', essay=essay, answers=None)
|
return render_template('clozeTest.html', essay=essay, answers=None)
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
|
|
Loading…
Reference in New Issue