From 19dcad36b4e7e915834d7b5867ec74f2270c3dcb Mon Sep 17 00:00:00 2001 From: xiongjiaming <3190186054@qq.com> Date: Mon, 20 May 2024 00:00:54 +0800 Subject: [PATCH] Fix bug 540 --- app/templates/userpage_get.html | 136 ++++++++++++++++++++++----- app/test/test_bug540_xiongjiaming.py | 47 +++++++++ 2 files changed, 160 insertions(+), 23 deletions(-) create mode 100644 app/test/test_bug540_xiongjiaming.py diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 68997ef..39a1c9d 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -5,6 +5,8 @@ + + {{ yml['header'] | safe }} {% if yml['css']['item'] %} @@ -21,17 +23,45 @@ EnglishPal Study Room for {{ username }} @@ -45,22 +75,28 @@ 重设密码

-{# {% for message in flashed_messages %}#} {# 根据user_service.userpage,取消了参数flashed_messages,因此注释了这段代码 #} -{# #} -{# {% endfor %}#} + {% for message in get_flashed_messages() %} + + {% endfor %} - - + +

阅读文章并回答问题

- +

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


-

-

{{ today_article["article_title"] }}


-

{{ today_article["article_body"] }}


-

{{ today_article['source'] }}


+

+

{{ today_article["article_title"] }}


+

{{ today_article["article_body"] }}


+
+

{{ today_article['source'] }}


+
+

{{ today_article['question'] }}