diff --git a/app/user_service.py b/app/user_service.py index 7ae608a..5148a60 100644 --- a/app/user_service.py +++ b/app/user_service.py @@ -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))