From 08bb7e0c40958d8e997177cffa24fdd1840d4582 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Mon, 2 Aug 2021 19:11:53 +0800 Subject: [PATCH] app/main.py: flash a message after deleting a word (use bootstrap alerts). --- app/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main.py b/app/main.py index 6776f49..5af6819 100644 --- a/app/main.py +++ b/app/main.py @@ -194,12 +194,12 @@ def get_answer_part(s): def get_flashed_messages_if_any(): messages = get_flashed_messages() - if messages == []: - return '' - s = '' + s += '' + return s @app.route("//reset", methods=['GET', 'POST'])