From 8f74c6fd3ab7c1626dec411c7acba578131bc894 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 13 Aug 2020 16:38:27 +0800 Subject: main.py: add logout link. --- app/README.md | 10 ++++++++++ app/main.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/README.md b/app/README.md index 124afa2..1097e71 100644 --- a/app/README.md +++ b/app/README.md @@ -49,3 +49,13 @@ sudo docker ps -a sudo docker logs image_name, where image name could be obtained from sudo docker ps. build.sh contains all the above commands. Run "sudo ./build.sh" to rebuild the web application. + + +Feedback +--------- + +Need a smart phone app. I use phone a lot. + +Can take a picture for text. Automatic translation. + +You cannot ask students to use computers. diff --git a/app/main.py b/app/main.py index 56ab992..3a51261 100644 --- a/app/main.py +++ b/app/main.py @@ -262,7 +262,7 @@ def userpage(username): user_expiry_date = session.get('expiry_date') if datetime.now().strftime('%Y%m%d') > user_expiry_date: - return '

账号 %s 过期。

为了提高服务质量,English Pal 收取会员费用, 每天1元。 请决定你要试用的时间长度,扫描下面支付宝二维码支付。 支付时请注明English Pal Membership Fee。 我们会于12小时内激活账号。

支付宝二维码

如果有问题,请加开发者微信 torontohui

' % (username) + return '

账号 %s 过期。

为了提高服务质量,English Pal 收取会员费用, 每天1元。

请决定你要试用的时间长度,扫描下面支付宝二维码支付。 支付时请注明English Pal Membership Fee。 我们会于12小时内激活账号。

支付宝二维码

如果有问题,请加开发者微信 torontohui。

登出

' % (username) username = session.get('username') -- cgit v1.2.1