From ffc33852ae0a0a728e19c7d94d0d65cbeaa80c16 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Sun, 5 Sep 2021 20:51:28 +0800 Subject: [PATCH] main.py: make sure the key articleID exists. --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index 00b8623..301d1bb 100644 --- a/app/main.py +++ b/app/main.py @@ -453,6 +453,7 @@ def signup(): session[username] = username session['username'] = username session['expiry_date'] = get_expiry_date(username) + session['articleID'] = None return '

恭喜,你已成功注册, 你的用户名是 %s

\

开始使用 返回首页

' % (username, username, username) else: