summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/README.md10
-rw-r--r--app/main.py2
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')