diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-10 21:57:05 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-10 21:57:05 +0800 |
commit | 6c1ae82abbc50fbae55e6a506625dc8a0340fda5 (patch) | |
tree | 628b09de757bc586347b121674626970320c7d70 | |
parent | 0bbac853906eab72ad7b46ca68b32f0c356d63a3 (diff) |
app/main.py: remove article information.
-rw-r--r-- | app/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/main.py b/app/main.py index 89acaf1..75a949d 100644 --- a/app/main.py +++ b/app/main.py @@ -172,6 +172,7 @@ def user_reset(username): username = session[username]
user_freq_record = path_prefix + 'static/frequency/' + 'frequency_%s.pickle' % (username)
if request.method == 'POST':
+ session.pop('article', None)
session['article'] = get_today_article(user_freq_record)
return redirect(url_for('userpage', username=username))
else:
|