diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2020-08-13 16:38:27 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2020-08-13 16:38:27 +0800 |
commit | 8f74c6fd3ab7c1626dec411c7acba578131bc894 (patch) | |
tree | 1a8e2cc21566eacbc2d2ac9511f5a91803ae7c6f /app | |
parent | b0f686d7fea423d8a26b2298e733f85577829236 (diff) |
main.py: add logout link.
Diffstat (limited to 'app')
-rw-r--r-- | app/README.md | 10 | ||||
-rw-r--r-- | app/main.py | 2 |
2 files changed, 11 insertions, 1 deletions
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 '<p>账号 %s 过期。</p><p>为了提高服务质量,English Pal 收取会员费用, 每天1元。 请决定你要试用的时间长度,扫描下面支付宝二维码支付。 支付时请注明<i>English Pal Membership Fee</i>。 我们会于12小时内激活账号。</p><p><img src="static/donate-the-author.jpg" width="120px" alt="支付宝二维码" /></p><p>如果有问题,请加开发者微信 torontohui</p>' % (username)
+ return '<p>账号 %s 过期。</p><p>为了提高服务质量,English Pal 收取会员费用, 每天1元。</p> <p>请决定你要试用的时间长度,扫描下面支付宝二维码支付。 支付时请注明<i>English Pal Membership Fee</i>。 我们会于12小时内激活账号。</p><p><img src="static/donate-the-author.jpg" width="120px" alt="支付宝二维码" /></p><p>如果有问题,请加开发者微信 torontohui。</p> <p><a href="/logout">登出</a></p>' % (username)
username = session.get('username')
|