diff --git a/app/main.py b/app/main.py index c39f0b7..25bf387 100644 --- a/app/main.py +++ b/app/main.py @@ -145,7 +145,7 @@ if __name__ == '__main__': ''' # app.secret_key = os.urandom(16) # app.run(debug=False, port='6000') - app.run(debug=True) + app.run(host='127.0.0.1', port=5000, debug=True) # app.run(debug=True, port='6000') # app.run(host='0.0.0.0', debug=True, port='6000') # print(mod5('123')) diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index d3bf8bf..08bcdc1 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -3,7 +3,7 @@ + content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes"/> @@ -25,34 +25,34 @@ EnglishPal Study Room for {{ username }} @@ -69,32 +69,43 @@

{% for message in get_flashed_messages() %} {% endfor %}

阅读文章并回答问题

- -

Article added on: {{ today_article["date"] }}


+ {% if today_article and today_article["ratio"] is not none %} + + {% else %} +
No article or article is incomplete.
+ {% endif %} +

Article added on: {{ today_article["date"] }}


- - + +

{{ today_article["article_title"] }}


@@ -114,11 +125,13 @@ } -
+
-
+
-