From 92544e7577ae3065d0d100b08f84016a4503d0f0 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Wed, 10 Feb 2021 22:21:15 +0800 Subject: app/main.py: usename is passed from the function argument list. --- app/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/main.py b/app/main.py index 75a949d..f0e7b34 100644 --- a/app/main.py +++ b/app/main.py @@ -169,7 +169,6 @@ def get_answer_part(s): @app.route("//reset", methods=['GET', 'POST']) 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) -- cgit v1.2.1