1
0
Fork 0

Use a better variable name (fix session variable name error).

Bug422-XuXing
Lan Hui 2022-07-21 22:28:22 +08:00
parent 2a553e0f8f
commit 4fb1cad745
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ def user_reset(username):
:param username: 用户名
:return: 返回页面内容
'''
session['old_artcileID'] = session.get('articleID')
session['old_articleID'] = session.get('articleID')
if request.method == 'GET':
session['articleID'] = None
return redirect(url_for('user_bp.userpage', username=username))
@ -44,7 +44,7 @@ def user_back(username):
:return: 返回页面内容
'''
if request.method == 'GET':
session['articleID'] = session.get('old_artcileID')
session['articleID'] = session.get('old_articleID')
return redirect(url_for('user_bp.userpage', username=username))