From 4fb1cad7457285da5a24ca152219df86a2447b57 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Thu, 21 Jul 2022 22:28:22 +0800 Subject: [PATCH] Use a better variable name (fix session variable name error). --- app/user_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))