From 61f46f7d58f78859256b0d911c88e3b6ec52a900 Mon Sep 17 00:00:00 2001 From: tianqilu <1336601986@qq.com> Date: Thu, 27 Apr 2023 15:43:11 +0800 Subject: [PATCH] first commit --- app/templates/userpage_get.html | 5 ++++- app/user_service.py | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 9e3891b..120eeac 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -26,7 +26,10 @@ 退出 重设密码

- {{ flashed_messages|safe }} + {% if flashed_messages != "" %} + + {% endif %} + 下一篇 Next Article {% if session.get('articleID') != session.get('old_articleID') %} diff --git a/app/user_service.py b/app/user_service.py index 79c7888..72200c5 100644 --- a/app/user_service.py +++ b/app/user_service.py @@ -181,7 +181,5 @@ def get_flashed_messages_if_any(): messages = get_flashed_messages() s = '' for message in messages: - s += '' + s += message return s