From d53231f58accd562482adae57ab466d2d7bae442 Mon Sep 17 00:00:00 2001 From: yzzob Date: Tue, 24 Jun 2025 17:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86userpage=5Fget.html?= =?UTF-8?q?=20=E4=BD=BF=E5=85=B6=E5=9C=A8ratio=E5=92=8Ctoday=5Farticle?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=20=E4=B8=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 2 +- app/templates/userpage_get.html | 107 ++++++++++++++++++-------------- 2 files changed, 61 insertions(+), 48 deletions(-) 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 @@ } -
+
-
+
-