From ac227c4c1a5d6dbb101fe292f3a1e4fb0aed3667 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Fri, 20 Aug 2021 19:33:51 +0800 Subject: [PATCH 1/3] Downloaded this repository using ftp. file mode changed. --- build.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 build.sh diff --git a/build.sh b/build.sh old mode 100755 new mode 100644 From 02a5d4bd4769fa78af98dd81e08da986163ca828 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sun, 5 Sep 2021 20:42:18 +0800 Subject: [PATCH 2/3] main.py: fix bug300: http://118.25.96.118/bugzilla/show_bug.cgi?id=300 --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index d23c272..a7e731f 100644 --- a/app/main.py +++ b/app/main.py @@ -451,6 +451,7 @@ def signup(): session['logged_in'] = True session[username] = username session['username'] = username + session['expiry_date'] = get_expiry_date(username) return '

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

\

开始使用 返回首页

' % (username, username, username) else: @@ -493,4 +494,3 @@ if __name__ == '__main__': app.run(debug=True) #app.run(debug=True, port='6000') #app.run(host='0.0.0.0', debug=True, port='6000') - 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 3/3] 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: